PM STRIKES AGAIN (untested)
This commit is contained in:
parent
4abd7b4706
commit
451a6d8464
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user