X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;ds=inline;f=ent_route.c;fp=ent_route.c;h=11b680d6f08a00cb6419754ad2998fe676200017;hb=1a194c3888293733939b2dd944251ae1b6c398ce;hp=8f95a26d292ce22c76c528e1819d8394f6cb7408;hpb=14851c4c820eb07a0db0ec0366a70bdd6518c331;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/ent_route.c b/ent_route.c index 8f95a26..11b680d 100644 --- a/ent_route.c +++ b/ent_route.c @@ -10,8 +10,10 @@ void ent_route_call( world_instance *world, ent_call *call ) ent_route *route = mdl_arritm( &world->ent_route, index ); if( call->function == 0 ){ /* view() */ - if( localplayer.subsystem == k_player_subsystem_walk ){ - world_entity_focus( call->id ); + if( localplayer.subsystem == k_player_subsystem_walk ) + { + world_entity_set_focus( call->id ); + world_entity_focus_modal(); gui_helper_clear(); vg_str text; @@ -61,8 +63,10 @@ void ent_route_preupdate( ent_route *route, int active ) global_ent_route.helper_alltime->greyed =!world_sfd.view_weekly; global_ent_route.helper_weekly->greyed = world_sfd.view_weekly; - if( button_down( k_srbind_mback ) ){ - world_entity_unfocus(); + if( button_down( k_srbind_mback ) ) + { + world_entity_exit_modal(); + world_entity_clear_focus(); gui_helper_clear(); return; }