Call K_TimerReset before spawning map things

Fixes DUEL items spawning twice if DUEL mode remains on
between maps. Fixes DUEL items spawning the next map after
DUEL mode deactivates.
This commit is contained in:
James R 2023-03-08 21:08:02 -08:00
parent ba994c261a
commit d83f91d169

View file

@ -7587,6 +7587,8 @@ boolean P_LoadLevel(boolean fromnetsave, boolean reloadinggamestate)
sector_t *ss;
virtlump_t *encoreLump = NULL;
K_TimerReset();
levelloading = true;
// This is needed. Don't touch.
@ -8008,8 +8010,6 @@ boolean P_LoadLevel(boolean fromnetsave, boolean reloadinggamestate)
P_MapEnd(); // just in case MapLoad modifies tm.thing
}
K_TimerReset();
// No render mode or reloading gamestate, stop here.
if (rendermode == render_none || reloadinggamestate)
return true;