From edb930344a816c5ccf8f788853c93f503eb41d31 Mon Sep 17 00:00:00 2001 From: Misa Date: Sun, 26 Apr 2020 19:33:07 -0700 Subject: [PATCH] Reset screen effects timers in hardreset() That way a gigantic timer from one in-game jaunt doesn't carry over to the next. --- desktop_version/src/Script.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/desktop_version/src/Script.cpp b/desktop_version/src/Script.cpp index c8e219cd..dfa05f50 100644 --- a/desktop_version/src/Script.cpp +++ b/desktop_version/src/Script.cpp @@ -3499,6 +3499,9 @@ void scriptclass::hardreset() game.pausescript = false; + game.flashlight = 0; + game.screenshake = 0; + //dwgraphicsclass graphics.backgrounddrawn = false; graphics.textboxremovefast();