* reevaluate all achievements to calculate the compiled achievement
*/
static void ent_region_re_eval( world_instance *world ){
+ u32 world_total = k_ent_route_flag_achieve_gold |
+ k_ent_route_flag_achieve_silver;
+
for( u32 i=0; i<mdl_arrcount(&world->ent_region); i ++ ){
ent_region *region = mdl_arritm(&world->ent_region, i);
}
region->flags = combined;
+ world_total &= combined;
+ }
+
+ u32 instance_id = world - world_static.instances;
+
+ if( world_static.instance_addons[instance_id]->flags & ADDON_REG_MTZERO ){
+ if( world_total & k_ent_route_flag_achieve_gold ){
+ steam_set_achievement( "MTZERO_GOLD" );
+ steam_store_achievements();
+ }
+
+ if( world_total & k_ent_route_flag_achieve_silver ){
+ steam_set_achievement( "MTZERO_SILVER" );
+ steam_store_achievements();
+ }
+ }
+
+ if( world_static.instance_addons[instance_id]->flags & ADDON_REG_CITY ){
+ steam_set_achievement( "CITY_COMPLETE" );
+ steam_store_achievements();
}
}