X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=ent_route.c;h=8f95a26d292ce22c76c528e1819d8394f6cb7408;hb=5f6a4f9df6c8accc89f1920bfe9ace3cbac4c4b6;hp=fa1d66900c452edbf58f5641cf8351f5d1a574c7;hpb=a109f126d8adab622e38fbcc2d4281e75255246a;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/ent_route.c b/ent_route.c index fa1d669..8f95a26 100644 --- a/ent_route.c +++ b/ent_route.c @@ -1,11 +1,11 @@ -#ifndef ENT_ROUTE_C -#define ENT_ROUTE_C - #include "ent_route.h" #include "input.h" #include "gui.h" -static void ent_route_call( world_instance *world, ent_call *call ){ +struct global_ent_route global_ent_route; + +void ent_route_call( world_instance *world, ent_call *call ) +{ u32 index = mdl_entity_id_id( call->id ); ent_route *route = mdl_arritm( &world->ent_route, index ); @@ -36,7 +36,8 @@ static void ent_route_call( world_instance *world, ent_call *call ){ } /* TODO: these should recieve the world instance */ -static void ent_route_preupdate( ent_route *route, int active ){ +void ent_route_preupdate( ent_route *route, int active ) +{ if( !active ) return; world_instance *world = world_current_instance(); @@ -66,5 +67,3 @@ static void ent_route_preupdate( ent_route *route, int active ){ return; } } - -#endif /* ENT_ROUTE_C */