diff options
Diffstat (limited to 'engines/zvision/timer_node.cpp')
-rw-r--r-- | engines/zvision/timer_node.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/engines/zvision/timer_node.cpp b/engines/zvision/timer_node.cpp index dc7dd5b38c..c7cefd6150 100644 --- a/engines/zvision/timer_node.cpp +++ b/engines/zvision/timer_node.cpp @@ -34,18 +34,18 @@ namespace ZVision { TimerNode::TimerNode(ZVision *engine, uint32 key, uint timeInSeconds) : SideFX(engine, key, SIDEFX_TIMER) { - if (_engine->getGameId() == GID_NEMESIS) - _timeLeft = timeInSeconds * 1000; - else if (_engine->getGameId() == GID_GRANDINQUISITOR) - _timeLeft = timeInSeconds * 100; - _engine->getScriptManager()->setStateValue(_key, 1); + if (_engine->getGameId() == GID_NEMESIS) + _timeLeft = timeInSeconds * 1000; + else if (_engine->getGameId() == GID_GRANDINQUISITOR) + _timeLeft = timeInSeconds * 100; + _engine->getScriptManager()->setStateValue(_key, 1); } TimerNode::~TimerNode() { - if (_timeLeft <= 0) + if (_timeLeft <= 0) _engine->getScriptManager()->setStateValue(_key, 2); else - _engine->getScriptManager()->setStateValue(_key, _timeLeft); // If timer was stopped by stop or kill + _engine->getScriptManager()->setStateValue(_key, _timeLeft); // If timer was stopped by stop or kill } bool TimerNode::process(uint32 deltaTimeInMillis) { |