small compression
[carveJwlIkooP6JGAAIwe30JlM.git] / ent_objective.c
index ff31c4f597beded3cf5a7d9822e8701f59c54b3c..0cf5790a70c0ce690011c56abc5239302c83e6fb 100644 (file)
@@ -7,7 +7,7 @@
 #include "audio.h"
 #include "steam.h"
 
-VG_STATIC void ent_objective_pass( world_instance *world, 
+static void ent_objective_pass( world_instance *world, 
                                    ent_objective *objective ){
    if( objective->id_next ){
       world_static.challenge_timer += objective->filter;
@@ -54,14 +54,15 @@ VG_STATIC void ent_objective_pass( world_instance *world,
          if( mdl_pstreq( &world->meta, world->info.pstr_name, 
                          understate, vg_strdjb2( understate ))){
             steam_set_achievement( "CITY_COMPLETE" );
+            steam_store_achievements();
          }
       }
    }
 }
 
-VG_STATIC int ent_objective_check_filter( ent_objective *objective ){
+static int ent_objective_check_filter( ent_objective *objective ){
    if( objective->filter ){
-      struct player_skate_state *s = &localplayer._skate.state;
+      struct player_skate_state *s = &player_skate.state;
       enum trick_type trick = s->trick_type;
 
       u32 state = 0x00;
@@ -92,7 +93,7 @@ VG_STATIC int ent_objective_check_filter( ent_objective *objective ){
    }
 }
 
-VG_STATIC void ent_objective_call( world_instance *world, ent_call *call ){
+static void ent_objective_call( world_instance *world, ent_call *call ){
    u32 index = mdl_entity_id_id( call->id );
    ent_objective *objective = mdl_arritm( &world->ent_objective, index );