Skip to content

Commit

Permalink
Fix touch navigation bug in the server connection screen
Browse files Browse the repository at this point in the history
  • Loading branch information
Lactozilla committed Mar 6, 2022
1 parent deab145 commit 54939fe
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions src/d_clisrv.c
Original file line number Diff line number Diff line change
Expand Up @@ -1994,19 +1994,26 @@ static void M_ConfirmConnect(event_t *ev)
}
else
cl_mode = CL_LOADFILES;

#ifdef TOUCHINPUTS
M_TSNav_SetConfirmVisible(false);
#endif
M_ClearMenus(true);
break;
case -1:
cl_mode = CL_ABORTED;
M_ClearMenus(true);
break;
default:
break;
}

if (result != 0)
{
M_ClearMenus(true);

#ifdef TOUCHINPUTS
M_TSNav_SetBackVisible(true);
TS_DefineNavigationButtons();
TS_HideNavigationButtons();

touchnavigation[TOUCHNAV_BACK].defined = true;
#endif
}
#else
(void)ev;
#endif
Expand Down

0 comments on commit 54939fe

Please sign in to comment.