mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-26 05:24:21 +01:00
Timed out objects must be disarmed
This commit is contained in:
parent
d3e4552174
commit
94c53ceb22
@ -1,11 +1,19 @@
|
||||
#include "sysdeps.h"
|
||||
#include "Prefs.h"
|
||||
#include "gui/gui.hh"
|
||||
|
||||
#include "timer.hh"
|
||||
#include "utils.hh"
|
||||
|
||||
#define MS_TO_TICKS(x) ((x) / ThePrefs.MsPerFrame)
|
||||
|
||||
TimeoutHandler::~TimeoutHandler()
|
||||
{
|
||||
/* If we haven't timed out yet, disarm us */
|
||||
Gui::gui->timerController->disarm(this);
|
||||
}
|
||||
|
||||
|
||||
TimerController::TimerController()
|
||||
{
|
||||
this->n_handlers = 0;
|
||||
|
@ -29,6 +29,8 @@ public:
|
||||
this->timer_id = -1;
|
||||
}
|
||||
|
||||
~TimeoutHandler();
|
||||
|
||||
void tick()
|
||||
{
|
||||
this->timeout--;
|
||||
|
Loading…
Reference in New Issue
Block a user