[server] Implement/match n_KillTimer(...)

* Implement/match `CScriptTimers::Kill(...)`
This commit is contained in:
RD42
2024-06-24 23:20:29 +08:00
parent 875dc0ed5c
commit 5675f1555b
3 changed files with 18 additions and 2 deletions
+14
View File
@@ -139,3 +139,17 @@ DWORD CScriptTimers::NewEx(char* szScriptFunc, int iInterval, BOOL bRepeating, c
//----------------------------------------------------------------------------------
void CScriptTimers::Kill(DWORD dwTimerId)
{
DwordTimerMap::iterator itor;
itor = m_Timers.find(dwTimerId);
if (itor != m_Timers.end())
{
itor->second->iRemainingTime = 0;
itor->second->bKilled = true;
itor->second->bRepeating = false;
}
}
//-----------------------------------------------------------