mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-22 19:39:24 +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 "sysdeps.h"
|
||||||
#include "Prefs.h"
|
#include "Prefs.h"
|
||||||
|
#include "gui/gui.hh"
|
||||||
|
|
||||||
#include "timer.hh"
|
#include "timer.hh"
|
||||||
#include "utils.hh"
|
#include "utils.hh"
|
||||||
|
|
||||||
#define MS_TO_TICKS(x) ((x) / ThePrefs.MsPerFrame)
|
#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()
|
TimerController::TimerController()
|
||||||
{
|
{
|
||||||
this->n_handlers = 0;
|
this->n_handlers = 0;
|
||||||
|
@ -29,6 +29,8 @@ public:
|
|||||||
this->timer_id = -1;
|
this->timer_id = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
~TimeoutHandler();
|
||||||
|
|
||||||
void tick()
|
void tick()
|
||||||
{
|
{
|
||||||
this->timeout--;
|
this->timeout--;
|
||||||
|
Loading…
Reference in New Issue
Block a user