X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=entity.c;h=287016a60a15fb28433bb48123e3daded8420fd9;hb=7122b79f53f4501751d884c0bf2e838ab501c4a3;hp=82c3ecde18601037942289e3a9dcb4f02f5091b1;hpb=6190deb68aa1c9e92ede62ea05c2a755bf5516de;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/entity.c b/entity.c index 82c3ecd..287016a 100644 --- a/entity.c +++ b/entity.c @@ -9,10 +9,11 @@ #include "ent_objective.c" #include "ent_challenge.c" #include "ent_relay.c" +#include "ent_route.c" typedef void (*fn_entity_call_handler)( world_instance *, ent_call *); -VG_STATIC void entity_call( world_instance *world, ent_call *call ){ +static void entity_call( world_instance *world, ent_call *call ){ u32 type = mdl_entity_id_type( call->id ); fn_entity_call_handler table[] = { @@ -23,7 +24,8 @@ VG_STATIC void entity_call( world_instance *world, ent_call *call ){ [k_ent_ccmd] = ent_ccmd_call, [k_ent_gate] = ent_gate_call, [k_ent_relay] = ent_relay_call, - [k_ent_challenge] = ent_challenge_call + [k_ent_challenge] = ent_challenge_call, + [k_ent_route] = ent_route_call }; if( type >= vg_list_size(table) ){