Skip to content

Commit

Permalink
ZVISION: Don't add new timer if sidefx with same key exist
Browse files Browse the repository at this point in the history
  • Loading branch information
Marisa-Chan committed Feb 24, 2014
1 parent 6210ead commit 226ccb0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions engines/zvision/actions.cpp
Expand Up @@ -607,6 +607,8 @@ ActionTimer::~ActionTimer() {
}

bool ActionTimer::execute() {
if (_engine->getScriptManager()->getSideFX(_slotkey))
return true;
_engine->getScriptManager()->addSideFX(new TimerNode(_engine, _slotkey, _time->getValue()));
return true;
}
Expand Down

0 comments on commit 226ccb0

Please sign in to comment.