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:
1 parent
0241b73dbe
commit
f01697bfdb
1 file changed
+1
-1
+1
-1
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user