aboutsummaryrefslogtreecommitdiff
path: root/Source/System.c
diff options
context:
space:
mode:
authorXaviDCR92 <xavi.dcr@gmail.com>2017-06-11 13:58:33 +0200
committerXaviDCR92 <xavi.dcr@gmail.com>2017-06-11 13:58:33 +0200
commitd1f55e8b45df2dfd84bdde3e2566ef14c9ba40f1 (patch)
tree1b6f25f6dfecbbd94b7b9db271dea7cde8ea6221 /Source/System.c
parent022c72fe369da0045f9ca7dd4b8d4d7dd169c87c (diff)
* Tried to get some work done in MapEditor with no success so far.
* Timers with no repeat flag were being set to NULL, but this is not actually desired! * Reenabled transparency for aircraft shadow. * Deprecated NotificationRequest flags, and replaced by system timer handling.
Diffstat (limited to 'Source/System.c')
-rw-r--r--Source/System.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/Source/System.c b/Source/System.c
index 6645682..bd3c0c0 100644
--- a/Source/System.c
+++ b/Source/System.c
@@ -701,13 +701,6 @@ void SystemUserTimersHandler(void)
{
timer_array[i].time = timer_array[i].orig_time;
}
- else
- {
- // Clean timer data
- timer_array[i].busy = false;
- timer_array[i].orig_time = 0;
- timer_array[i].Timeout_Callback = NULL;
- }
}
}
}
@@ -729,6 +722,7 @@ void SystemUserTimersHandler(void)
void SystemTimerRestart(TYPE_TIMER* timer)
{
timer->time = timer->orig_time;
+ dprintf("Time set to %d seconds, timer 0x%08X\n", timer->time, timer);
}
void SystemTimerRemove(TYPE_TIMER* timer)