Skip to content

Commit

Permalink
ZVISION: Code for ActionDisableControl and ActionEnableControl.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marisa-Chan committed Nov 13, 2013
1 parent 7bd57a9 commit a0d73c3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions engines/zvision/actions.cpp
Expand Up @@ -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;
}

Expand All @@ -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;
}

Expand Down

0 comments on commit a0d73c3

Please sign in to comment.