From f01697bfdb80aff820201e523ebdfe4bc3e98cf3 Mon Sep 17 00:00:00 2001 From: Ashnal Date: Mon, 8 Mar 2021 00:48:15 -0500 Subject: [PATCH] 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 --- src/d_clisrv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d_clisrv.c b/src/d_clisrv.c index f4029ee0..9a3652cc 100644 --- a/src/d_clisrv.c +++ b/src/d_clisrv.c @@ -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();