mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +03:00
PM STRIKES AGAIN (untested)
This commit is contained in:
parent
4abd7b4706
commit
451a6d8464
@ -162,6 +162,11 @@ CTaskMngr::CTaskMngr()
|
|||||||
m_pTmr_TimeLeft = NULL;
|
m_pTmr_TimeLeft = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CTaskMngr::~CTaskMngr()
|
||||||
|
{
|
||||||
|
clear();
|
||||||
|
}
|
||||||
|
|
||||||
void CTaskMngr::registerTimers(float *pCurrentTime, float *pTimeLimit, float *pTimeLeft)
|
void CTaskMngr::registerTimers(float *pCurrentTime, float *pTimeLimit, float *pTimeLeft)
|
||||||
{
|
{
|
||||||
m_pTmr_CurrentTime = pCurrentTime;
|
m_pTmr_CurrentTime = pCurrentTime;
|
||||||
@ -235,5 +240,8 @@ void CTaskMngr::startFrame()
|
|||||||
|
|
||||||
void CTaskMngr::clear()
|
void CTaskMngr::clear()
|
||||||
{
|
{
|
||||||
|
for (TaskListIter iter = m_Tasks.begin(); iter; ++iter)
|
||||||
|
delete &(*iter); // hamster
|
||||||
|
|
||||||
m_Tasks.clear();
|
m_Tasks.clear();
|
||||||
}
|
}
|
||||||
|
@ -106,6 +106,7 @@ private:
|
|||||||
float *m_pTmr_TimeLeft;
|
float *m_pTmr_TimeLeft;
|
||||||
public:
|
public:
|
||||||
CTaskMngr();
|
CTaskMngr();
|
||||||
|
~CTaskMngr();
|
||||||
|
|
||||||
void registerTimers(float *pCurrentTime, float *pTimeLimit, float *pTimeLeft); // The timers will always point to the right value
|
void registerTimers(float *pCurrentTime, float *pTimeLimit, float *pTimeLeft); // The timers will always point to the right value
|
||||||
void registerTask(CPluginMngr::CPlugin *pPlugin, int iFunc, int iFlags, int iId, float fBase, int iParamsLen, const cell *pParams, int iRepeat);
|
void registerTask(CPluginMngr::CPlugin *pPlugin, int iFunc, int iFlags, int iId, float fBase, int iParamsLen, const cell *pParams, int iRepeat);
|
||||||
|
Loading…
Reference in New Issue
Block a user