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
This commit is contained in:
Alug committed 2025-08-03 15:27:55 +02:00
1 parent c8a2278cb7
commit 1a46d7d16c
1 file changed
+4
+4
View File
@@ -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;