X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=ent_objective.c;h=66b822db62d9e4eb9bf2a20cd71ab76db8c2230f;hb=5f6a4f9df6c8accc89f1920bfe9ace3cbac4c4b6;hp=ce5ad0f2168c9067d504a0ca8cc17d4f05b0c8c8;hpb=a109f126d8adab622e38fbcc2d4281e75255246a;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/ent_objective.c b/ent_objective.c index ce5ad0f..66b822d 100644 --- a/ent_objective.c +++ b/ent_objective.c @@ -1,11 +1,11 @@ -#ifndef ENT_OBJECTIVE_C -#define ENT_OBJECTIVE_C - #include "world.h" #include "world_load.h" #include "entity.h" #include "audio.h" #include "steam.h" +#include "ent_region.h" +#include "player.h" +#include "player_skate.h" static void ent_objective_pass( world_instance *world, ent_objective *objective ){ @@ -81,7 +81,8 @@ static int ent_objective_check_filter( ent_objective *objective ){ } } -static void ent_objective_call( world_instance *world, ent_call *call ){ +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 ); @@ -127,5 +128,3 @@ static void ent_objective_call( world_instance *world, ent_call *call ){ vg_error( "Unhandled function id: %u\n", call->function ); } } - -#endif /* ENT_OBJECTIVE_C */