PM STRIKES AGAIN (untested)

This commit is contained in:
Pavol Marko 2005-07-25 19:09:49 +00:00
parent 4abd7b4706
commit 451a6d8464
2 changed files with 9 additions and 0 deletions

View File

@ -162,6 +162,11 @@ CTaskMngr::CTaskMngr()
m_pTmr_TimeLeft = NULL;
}
CTaskMngr::~CTaskMngr()
{
clear();
}
void CTaskMngr::registerTimers(float *pCurrentTime, float *pTimeLimit, float *pTimeLeft)
{
m_pTmr_CurrentTime = pCurrentTime;
@ -235,5 +240,8 @@ void CTaskMngr::startFrame()
void CTaskMngr::clear()
{
for (TaskListIter iter = m_Tasks.begin(); iter; ++iter)
delete &(*iter); // hamster
m_Tasks.clear();
}

View File

@ -106,6 +106,7 @@ private:
float *m_pTmr_TimeLeft;
public:
CTaskMngr();
~CTaskMngr();
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);