From 17f9bc8a8ad16e75325fe6fed4972da8988571a8 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 17 Aug 2020 20:30:44 +0200 Subject: [PATCH] - initiate a full game reset when respawning after death. This was done with the old code but we now have to set the respective flag explicitly because the init code is inside the main loop, not outside. Fixes #188 --- source/sw/src/player.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/sw/src/player.cpp b/source/sw/src/player.cpp index 833cf1b9f..7c3b57236 100644 --- a/source/sw/src/player.cpp +++ b/source/sw/src/player.cpp @@ -6718,6 +6718,9 @@ void DoPlayerDeathCheckKeys(PLAYERp pp) else { ExitLevel = TRUE; + NewGame = true; + NextLevel = currentLevel; + } DoPlayerFireOutDeath(pp);