diff options
-rw-r--r-- | engines/zvision/actions.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/engines/zvision/actions.cpp b/engines/zvision/actions.cpp index 4fe288d228..ea33736b5d 100644 --- a/engines/zvision/actions.cpp +++ b/engines/zvision/actions.cpp @@ -137,9 +137,7 @@ ActionDisableControl::ActionDisableControl(ZVision *engine, const Common::String } bool ActionDisableControl::execute() { - debug("Disabling control %u", _key); - - + _engine->getScriptManager()->setStateFlag(_key, Puzzle::DISABLED); return true; } @@ -154,9 +152,7 @@ ActionEnableControl::ActionEnableControl(ZVision *engine, const Common::String & } bool ActionEnableControl::execute() { - debug("Enabling control %u", _key); - - + _engine->getScriptManager()->unsetStateFlag(_key, Puzzle::DISABLED); return true; } |