diff options
Diffstat (limited to 'engines/zvision')
-rw-r--r-- | engines/zvision/actions.cpp | 2 | ||||
-rw-r--r-- | engines/zvision/script_manager.cpp | 5 | ||||
-rw-r--r-- | engines/zvision/script_manager.h | 1 |
3 files changed, 1 insertions, 7 deletions
diff --git a/engines/zvision/actions.cpp b/engines/zvision/actions.cpp index 5fbfbd6436..ea0d06b1d7 100644 --- a/engines/zvision/actions.cpp +++ b/engines/zvision/actions.cpp @@ -49,7 +49,7 @@ ActionAdd::ActionAdd(ZVision *engine, const Common::String &line) : } bool ActionAdd::execute() { - _engine->getScriptManager()->addToStateValue(_key, _value); + _engine->getScriptManager()->setStateValue(_key, _engine->getScriptManager()->getStateValue(_key) + _value); return true; } diff --git a/engines/zvision/script_manager.cpp b/engines/zvision/script_manager.cpp index c4ea8be9a2..e7ec34f9e7 100644 --- a/engines/zvision/script_manager.cpp +++ b/engines/zvision/script_manager.cpp @@ -296,11 +296,6 @@ void ScriptManager::unsetStateFlag(uint32 key, uint value) { } } -void ScriptManager::addToStateValue(uint32 key, uint valueToAdd) { - _globalState[key] += valueToAdd; -} - - Control *ScriptManager::getControl(uint32 key) { return nullptr; diff --git a/engines/zvision/script_manager.h b/engines/zvision/script_manager.h index c75296b586..07c09c513e 100644 --- a/engines/zvision/script_manager.h +++ b/engines/zvision/script_manager.h @@ -172,7 +172,6 @@ public: uint getStateValue(uint32 key); void setStateValue(uint32 key, uint value); - void addToStateValue(uint32 key, uint valueToAdd); uint getStateFlag(uint32 key); void setStateFlag(uint32 key, uint value); |