From c1fcd5aa28633b65dd24ff5aae9f896351808f0c Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 20 Sep 2014 10:19:06 -0400 Subject: TSAGE: Fix for bug #6734 - insetUp being incorrect --- engines/tsage/ringworld2/ringworld2_logic.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'engines/tsage') diff --git a/engines/tsage/ringworld2/ringworld2_logic.cpp b/engines/tsage/ringworld2/ringworld2_logic.cpp index 99188c1ab6..99913d87b0 100644 --- a/engines/tsage/ringworld2/ringworld2_logic.cpp +++ b/engines/tsage/ringworld2/ringworld2_logic.cpp @@ -355,6 +355,11 @@ SceneExt::SceneExt(): Scene() { // to make inter-scene debugging easier, I'm explicitly resetting the _animationCtr // on scene start, since scene objects aren't drawn while it's non-zero R2_GLOBALS._animationCtr = 0; + + // WORKAROUND: We had a case where at some point the number of modal dialogs + // open became incorrect. So reset it on scene changes to fix the problem if + // it ever happens + R2_GLOBALS._insetUp = 0; } void SceneExt::synchronize(Serializer &s) { -- cgit v1.2.3