if( (localplayer.subsystem == k_player_subsystem_walk) &&
(world_static.challenge_target == NULL) ){
world_static.challenge_target = NULL;
- world_entity_focus( call->id );
+ world_entity_set_focus( call->id );
+ world_entity_focus_modal();
gui_helper_clear();
vg_str text;
if( min_dist2 > max_dist*max_dist ){
world_static.challenge_target = NULL;
world_static.challenge_timer = 0.0f;
- world_static.focused_entity = 0;
+ world_entity_clear_focus();
audio_lock();
audio_oneshot_3d( &audio_challenge[6], localplayer.rb.co,
30.0f, 1.0f );
world_static.challenge_target = mdl_arritm( &world->ent_objective,
index );
world_static.challenge_timer = 0.0f;
- world_entity_unfocus();
+ world_entity_exit_modal();
gui_helper_clear();
u32 next = challenge->first;
}
}
- if( button_down( k_srbind_mback ) ){
+ if( button_down( k_srbind_mback ) )
+ {
world_static.challenge_target = NULL;
- world_entity_unfocus();
+ world_entity_exit_modal();
+ world_entity_clear_focus();
gui_helper_clear();
audio_lock();
audio_oneshot( &audio_challenge[4], 1.0f, 0.0f );