aboutsummaryrefslogtreecommitdiff
path: root/Source/Timer.c
diff options
context:
space:
mode:
authorXaviDCR92 <xavi.dcr@gmail.com>2017-12-26 22:18:37 +0100
committerXaviDCR92 <xavi.dcr@gmail.com>2017-12-26 22:18:37 +0100
commit4eaa6c091f97ca3455b2ae48a5f68867c0f7768e (patch)
tree79ae89ae5b7399c774ae6fcb792c109a725e1af8 /Source/Timer.c
parentf06d582d63b1f91e48ecb17a11987217144c5c79 (diff)
downloadairport-4eaa6c091f97ca3455b2ae48a5f68867c0f7768e.tar.gz
* 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.
Diffstat (limited to 'Source/Timer.c')
-rw-r--r--Source/Timer.c6
1 files changed, 3 insertions, 3 deletions
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;
}