From 3fa9e7894b9d6afb2bf0fc052cda3cfcff1e648f Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 26 Nov 2021 23:28:12 +0100 Subject: [PATCH] - WH: enable level restart after death. --- source/games/whaven/src/input.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/games/whaven/src/input.cpp b/source/games/whaven/src/input.cpp index 0f785c218..068fd019f 100644 --- a/source/games/whaven/src/input.cpp +++ b/source/games/whaven/src/input.cpp @@ -199,6 +199,12 @@ void processinput(int num) { if (plr.dead) { if (plr.horizon.horiz.asq16() < gi->playerHorizMax()) plr.horizon.addadjustment(TICSPERFRAME << 1); + + if (bits & (SB_FIRE | SB_OPEN)) + { + // restart; + gameaction = ga_autoloadgame; + } } return; }