From 4eaa6c091f97ca3455b2ae48a5f68867c0f7768e Mon Sep 17 00:00:00 2001 From: XaviDCR92 Date: Tue, 26 Dec 2017 22:18:37 +0100 Subject: * Slight optimization: all comparations against true are now compared against != false. + Added a provisional background during gameplay (still WIP). * Map editor now allows creating a map. --- Source/Timer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Source/Timer.c') diff --git a/Source/Timer.c b/Source/Timer.c index 85ae267..abbb9c7 100644 --- a/Source/Timer.c +++ b/Source/Timer.c @@ -113,9 +113,9 @@ void TimerHandler(void) for (i = 0; i < MAX_TIMERS; i++) { - if (timer_array[i].busy == true) + if (timer_array[i].busy != false) { - if (System100msTick() == true) + if (System100msTick() != false) { timer_array[i].time--; @@ -123,7 +123,7 @@ void TimerHandler(void) { timer_array[i].Timeout_Callback(); - if (timer_array[i].repeat_flag == true) + if (timer_array[i].repeat_flag != false) { timer_array[i].time = timer_array[i].orig_time; } -- cgit v1.2.3