Prevent the connection from being canceled when in Record Attack

Fixes a crash that can happen when starting RA attempts if you press
keys/buttons that would cancel a netgame connection
This commit is contained in:
Ashnal 2021-03-08 00:48:15 -05:00
parent 0241b73dbe
commit f01697bfdb

View file

@ -2468,7 +2468,7 @@ static boolean CL_ServerConnectionTicker(const char *tmpsave, tic_t *oldtic, tic
key = I_GetKey();
// Only ESC and non-keyboard keys abort connection
if (key == KEY_ESCAPE || key >= KEY_MOUSE1 || cl_mode == CL_ABORTED)
if (!modeattacking && (key == KEY_ESCAPE || key >= KEY_MOUSE1 || cl_mode == CL_ABORTED))
{
CONS_Printf(M_GetText("Network game synchronization aborted.\n"));
D_QuitNetGame();