diff options
author | Marisa-Chan | 2013-11-01 16:23:08 +0700 |
---|---|---|
committer | Marisa-Chan | 2013-11-01 16:23:08 +0700 |
commit | a5430c7703331e6180c17b89c95372feb73f0092 (patch) | |
tree | b6446bf28e406e958d3f3b74f4617c41c69e6aff | |
parent | 1477192e8c46918bd56d2430fc04b14495e3e8dd (diff) | |
download | scummvm-rg350-a5430c7703331e6180c17b89c95372feb73f0092.tar.gz scummvm-rg350-a5430c7703331e6180c17b89c95372feb73f0092.tar.bz2 scummvm-rg350-a5430c7703331e6180c17b89c95372feb73f0092.zip |
ZVISION: Don't use unneeded function.
-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); |