From 1a46d7d16c9806d3cf00b2e7833ea93f8365067d Mon Sep 17 00:00:00 2001 From: Alug Date: Tue, 29 Jul 2025 16:46:21 +0200 Subject: [PATCH] HACK reset demo.inreplayhut on levelload when not in replay playback this is really hacky, but M_QuitReplayHut will be skipped if we change maps, connect to a server or basically anything in that manner from within a replay that we started from the replayhut which can lead to crashes or the replayhut to become nonfunctional note, like this demolist is not freed, but that shouldnt matter much since it will be freed anyways the moment you open the replayhut again --- src/p_setup.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/p_setup.c b/src/p_setup.c index 3cacbca54..5981921e1 100644 --- a/src/p_setup.c +++ b/src/p_setup.c @@ -2828,6 +2828,10 @@ boolean P_SetupLevel(boolean fromnetsave, boolean reloadinggamestate) levelloading = true; + // HACK: this doesent reset if you change the map from within a replay and may cause crashes or the replayhut to be non functional + if (!demo.playback) + demo.inreplayhut = false; + // This is needed. Don't touch. maptol = mapheaderinfo[gamemap-1]->typeoflevel;