Only allow ESC and non-keyboard keys to abort connection

This commit is contained in:
wolfy852 2019-01-15 18:47:13 -06:00
parent f53594cf81
commit 3dbf6f7ad0
1 changed files with 2 additions and 2 deletions

View File

@ -2076,8 +2076,8 @@ static boolean CL_ServerConnectionTicker(boolean viams, const char *tmpsave, tic
I_OsPolling();
key = I_GetKey();
// Any key can be used to abort network connection
if (key != KEY_NULL)
// Only ESC and non-keyboard keys abort connection
if (key == KEY_ESCAPE || key >= KEY_MOUSE1)
{
CONS_Printf(M_GetText("Network game synchronization aborted.\n"));
// M_StartMessage(M_GetText("Network game synchronization aborted.\n\nPress ESC\n"), NULL, MM_NOTHING);