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;
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;
}