ZVISION: Don't add new timer if sidefx with same key exist

This commit is contained in:
Marisa-Chan 2014-02-24 20:40:20 +07:00
parent 6210ead126
commit 226ccb0de7

View File

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