Merge pull request #366 from peace-maker/timer_paused
Fix calling timer callback in paused plugins
This commit is contained in:
commit
ff692f6040
@ -133,7 +133,10 @@ ResultType TimerNatives::OnTimer(ITimer *pTimer, void *pData)
|
||||
{
|
||||
TimerInfo *pInfo = reinterpret_cast<TimerInfo *>(pData);
|
||||
IPluginFunction *pFunc = pInfo->Hook;
|
||||
cell_t res = static_cast<ResultType>(Pl_Continue);
|
||||
if (!pFunc->IsRunnable())
|
||||
return Pl_Continue;
|
||||
|
||||
cell_t res = static_cast<cell_t>(Pl_Continue);
|
||||
|
||||
pFunc->PushCell(pInfo->TimerHandle);
|
||||
pFunc->PushCell(pInfo->UserData);
|
||||
|
Loading…
Reference in New Issue
Block a user