From d1f55e8b45df2dfd84bdde3e2566ef14c9ba40f1 Mon Sep 17 00:00:00 2001 From: XaviDCR92 Date: Sun, 11 Jun 2017 13:58:33 +0200 Subject: * 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. --- Source/System.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'Source/System.c') 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) -- cgit v1.2.3