aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorrichiesams2013-08-17 20:39:29 -0500
committerrichiesams2013-08-18 19:52:59 -0500
commit09ae4443d4d8ea9781ce7c98c26c4010b4a3427a (patch)
tree500cdbb009be242065ced91cbcf311e5169ed950 /engines
parentc840d082ceee068446176024b86031f24ed0a968 (diff)
downloadscummvm-rg350-09ae4443d4d8ea9781ce7c98c26c4010b4a3427a.tar.gz
scummvm-rg350-09ae4443d4d8ea9781ce7c98c26c4010b4a3427a.tar.bz2
scummvm-rg350-09ae4443d4d8ea9781ce7c98c26c4010b4a3427a.zip
ZVISION: Reset push_toggle controls global state value to 0 during initialization
Diffstat (limited to 'engines')
-rw-r--r--engines/zvision/control.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/zvision/control.cpp b/engines/zvision/control.cpp
index eeba9b3214..b55452c876 100644
--- a/engines/zvision/control.cpp
+++ b/engines/zvision/control.cpp
@@ -27,6 +27,7 @@
#include "zvision/zvision.h"
#include "zvision/render_manager.h"
#include "zvision/render_table.h"
+#include "zvision/script_manager.h"
#include "zvision/control.h"
#include "zvision/utility.h"
@@ -103,6 +104,8 @@ void Control::parseTiltControl(ZVision *engine, Common::SeekableReadStream &stre
}
void Control::parsePushToggleControl(uint32 key, ZVision *engine, Common::SeekableReadStream &stream) {
+ engine->getScriptManager()->setStateValue(key, 0);
+
Common::Rect hotspot;
Common::String cursorName;