aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrichiesams2013-08-28 09:18:18 -0500
committerrichiesams2013-08-28 16:44:41 -0500
commitf1f36e7c9db0b78a5ae04ebdadebe431e2840bfc (patch)
tree9258fa3e00383a5f286b42fb02b6a2955fdcf8b0
parent952fb83793fb99a3e8d7db849a4b66f830e4e3ad (diff)
downloadscummvm-rg350-f1f36e7c9db0b78a5ae04ebdadebe431e2840bfc.tar.gz
scummvm-rg350-f1f36e7c9db0b78a5ae04ebdadebe431e2840bfc.tar.bz2
scummvm-rg350-f1f36e7c9db0b78a5ae04ebdadebe431e2840bfc.zip
ZVISION: Add LeverControl to scr file parsing
-rw-r--r--engines/zvision/scr_file_handling.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/zvision/scr_file_handling.cpp b/engines/zvision/scr_file_handling.cpp
index 212d7140b0..06767c5340 100644
--- a/engines/zvision/scr_file_handling.cpp
+++ b/engines/zvision/scr_file_handling.cpp
@@ -27,6 +27,7 @@
#include "zvision/puzzle.h"
#include "zvision/actions.h"
#include "zvision/push_toggle_control.h"
+#include "zvision/lever_control.h"
#include "common/textconsole.h"
#include "common/file.h"
@@ -287,10 +288,12 @@ void ScriptManager::parseControl(Common::String &line, Common::SeekableReadStrea
} else if (controlType.equalsIgnoreCase("pana")) {
Control::parsePanoramaControl(_engine, stream);
return;
- }
- else if (controlType.equalsIgnoreCase("tilt")) {
+ } else if (controlType.equalsIgnoreCase("tilt")) {
Control::parseTiltControl(_engine, stream);
return;
+ } else if (controlType.equalsIgnoreCase("lever")) {
+ _activeControls.push_back(new LeverControl(_engine, key, stream));
+ return;
}
}