move M_ResetDemoList hack to G_InitNew

This commit is contained in:
Alug committed 2025-11-25 19:15:25 +01:00
1 parent 3c58056169
commit 9dd6b74082
2 files changed
+6 -6

No files matched your search

+6
View File
@@ -4019,6 +4019,12 @@ void G_InitNew(UINT8 pencoremode, const char *mapname, boolean resetplayer, bool
automapactive = false;
imcontinuing = false;
// 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)
{
M_ResetDemoList();
}
if (!skipprecutscene && mapheaderinfo[gamemap-1]->precutscenenum && !modeattacking) // Start a custom cutscene.
F_StartCustomCutscene(mapheaderinfo[gamemap-1]->precutscenenum-1, true, resetplayer);
else
-6
View File
@@ -2745,12 +2745,6 @@ boolean P_SetupLevel(boolean fromnetsave, boolean reloadinggamestate)
Reset_Zsubsecs();
// 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)
{
M_ResetDemoList();
}
midgamejoin = fromnetsave; // makes dynslopes run in P_Ticker to avoid synch issues and other stuff
levelloading = true;