diff options
Diffstat (limited to 'engines/zvision/scr_file_handling.cpp')
-rw-r--r-- | engines/zvision/scr_file_handling.cpp | 7 |
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; } } |