From 8b11d5a4534efa631fae92bd69a08db38d094f7a Mon Sep 17 00:00:00 2001 From: Alug Date: Tue, 28 Oct 2025 15:15:26 +0100 Subject: [PATCH] simplify addonsonly reset a little if we only load addons we always end up in the abort case, either by manual cancelling or by itself --- src/d_clisrv.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/d_clisrv.c b/src/d_clisrv.c index 4efacab97..1d94946dc 100644 --- a/src/d_clisrv.c +++ b/src/d_clisrv.c @@ -2774,7 +2774,6 @@ static boolean CL_ServerConnectionTicker(const char *tmpsave, tic_t *oldtic, tic // close connection after savegame load // we want the actual server state // in case theres some stuff like records to be synched - CL_AbortConnection(); cl_mode = CL_ABORTED; } else @@ -2782,14 +2781,11 @@ static boolean CL_ServerConnectionTicker(const char *tmpsave, tic_t *oldtic, tic cl_mode = CL_CONNECTED; } - addonsonly = false; - break; } // don't break case continue to CL_CONNECTED else break; case CL_CONNECTED: - addonsonly = false; case CL_CONFIRMCONNECT: //logic is handled by M_ConfirmConnect default: break; @@ -2797,12 +2793,9 @@ static boolean CL_ServerConnectionTicker(const char *tmpsave, tic_t *oldtic, tic // Connection closed by cancel, timeout or refusal. case CL_ABORTED: cl_mode = CL_SEARCHING; - addonsonly = false; return false; } - //addonsonly = false; - GetPackets(); Net_AckTicker(); @@ -2828,7 +2821,6 @@ static boolean CL_ServerConnectionTicker(const char *tmpsave, tic_t *oldtic, tic } else if (key == KEY_ESCAPE || key == KEY_JOY1+1) { - addonsonly = false; cl_mode = CL_ABORTED; FreeMapIcon(); } @@ -2845,9 +2837,11 @@ static boolean CL_ServerConnectionTicker(const char *tmpsave, tic_t *oldtic, tic { CONS_Printf(M_GetText("Network game synchronization aborted.\n")); CL_AbortConnection(); + addonsonly = false; return false; } + *oldtic = I_GetTime(); if (client && cl_mode != CL_CONNECTED && cl_mode != CL_ABORTED)