X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=ent_challenge.c;h=ce87366421522049a14c304c74331c2dee5766fc;hb=5f6a4f9df6c8accc89f1920bfe9ace3cbac4c4b6;hp=72149b1a4d4dd72327c01b71ad6207cb8a8b2fbe;hpb=a109f126d8adab622e38fbcc2d4281e75255246a;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/ent_challenge.c b/ent_challenge.c index 72149b1..ce87366 100644 --- a/ent_challenge.c +++ b/ent_challenge.c @@ -1,12 +1,10 @@ -#ifndef ENT_CHALLENGE_C -#define ENT_CHALLENGE_C - #include "entity.h" #include "input.h" #include "gui.h" #include "audio.h" -static void ent_challenge_call( world_instance *world, ent_call *call ){ +void ent_challenge_call( world_instance *world, ent_call *call ) +{ u32 index = mdl_entity_id_id( call->id ); ent_challenge *challenge = mdl_arritm( &world->ent_challenge, index ); @@ -42,7 +40,8 @@ static void ent_challenge_call( world_instance *world, ent_call *call ){ } } -static void ent_challenge_preupdate( ent_challenge *challenge, int active ){ +void ent_challenge_preupdate( ent_challenge *challenge, int active ) +{ world_instance *world = world_current_instance(); /* maximum distance from active challenge */ @@ -115,5 +114,3 @@ static void ent_challenge_preupdate( ent_challenge *challenge, int active ){ static void ent_challenge_render( ent_challenge *challenge ){ } - -#endif /* ENT_CHALLENGE_C */