#include "helperfuncs.h"
#include "timer.h"
-extern time_t TIME;
-
typedef std::vector<InspTimer*> timergroup;
typedef std::map<time_t, timergroup*> timerlist;
+
timerlist Timers;
void TickTimers(time_t TIME)
{
InspTimer* n = *y;
n->Tick(TIME);
- delete n;
+ DELETE(n);
}
Timers.erase(found);
- delete x;
+ DELETE(x);
}
}
{
InspTimer* z = *y;
z->Tick(TIME);
- delete z;
+ DELETE(z);
}
Timers.erase(found);
- delete x;
+ DELETE(x);
}
}
}