X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=ent_objective.c;h=0cf5790a70c0ce690011c56abc5239302c83e6fb;hb=137d40d96fe923600d8378b8e138e3c276f27ff4;hp=d516e2756895d0c045d92c5b1730d28c72516f25;hpb=8c6ba83d5eaab5922468e981c4e8b799d8f77e2f;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/ent_objective.c b/ent_objective.c index d516e27..0cf5790 100644 --- a/ent_objective.c +++ b/ent_objective.c @@ -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; @@ -60,9 +60,9 @@ VG_STATIC void ent_objective_pass( world_instance *world, } } -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; @@ -93,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 );