X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=ent_route.c;h=026bf7048ac01237a55526ebceb827f53a99c155;hb=f01a25e33a54c92e4d6bca0889b76f33af5e51eb;hp=11b680d6f08a00cb6419754ad2998fe676200017;hpb=fbe807d19b8a626c2d75002b286dd794f893473a;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/ent_route.c b/ent_route.c index 11b680d..026bf70 100644 --- a/ent_route.c +++ b/ent_route.c @@ -4,12 +4,13 @@ struct global_ent_route global_ent_route; -void ent_route_call( world_instance *world, ent_call *call ) +entity_call_result 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 ); - if( call->function == 0 ){ /* view() */ + if( call->function == 0 ) + { /* view() */ if( localplayer.subsystem == k_player_subsystem_walk ) { world_entity_set_focus( call->id ); @@ -29,12 +30,11 @@ void ent_route_call( world_instance *world, ent_call *call ) if( gui_new_helper( input_button_list[k_srbind_mback], &text ) ) vg_strcat( &text, "exit" ); } + + return k_entity_call_result_OK; } - else { - /* TODO: Comrpession */ - vg_print_backtrace(); - vg_error( "Unhandled function id: %u\n", call->function ); - } + + return k_entity_call_result_unhandled; } /* TODO: these should recieve the world instance */