diff --git a/src/g_game.c b/src/g_game.c index 0eb15b853..e65e25b79 100644 --- a/src/g_game.c +++ b/src/g_game.c @@ -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 diff --git a/src/p_setup.c b/src/p_setup.c index 499c8063d..793da2a13 100644 --- a/src/p_setup.c +++ b/src/p_setup.c @@ -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;