aboutsummaryrefslogtreecommitdiff
path: root/Source/GameGui.c
diff options
context:
space:
mode:
authorXaviDCR92 <xavi.dcr@gmail.com>2017-08-10 22:39:31 +0200
committerXaviDCR92 <xavi.dcr@gmail.com>2017-08-10 22:39:31 +0200
commitf17b15bdffe45810eebc7695c10f1d7fc34af014 (patch)
tree273e3459303a063c03a84ffbc7c95415eb216364 /Source/GameGui.c
parentb807ee7ca59c13bbc698595da5e56eb6dd6daa2f (diff)
downloadairport-f17b15bdffe45810eebc7695c10f1d7fc34af014.tar.gz
+ System timer functions now moved to a separate source file, Timer.c/Timer.h.
* Added some more comments on Game.c. * On GamePathToTile(), duplicate checks for existing tile have been replaced by calls to GameWaypointCheckExisting().
Diffstat (limited to 'Source/GameGui.c')
-rw-r--r--Source/GameGui.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/Source/GameGui.c b/Source/GameGui.c
index 82d8c71..e501827 100644
--- a/Source/GameGui.c
+++ b/Source/GameGui.c
@@ -7,6 +7,7 @@
#include "Gfx.h"
#include "Game.h"
#include "LoadMenu.h"
+#include "Timer.h"
/* *************************************
* Defines
@@ -288,7 +289,7 @@ void GameGuiInit(void)
PageUpDownSpr.w = AIRCRAFT_DATA_FLIGHT_PAGEUPDN_SIZE;
- ShowAircraftPassengersTimer = SystemCreateTimer(20, true, GameGuiClearPassengersLeft);
+ ShowAircraftPassengersTimer = TimerCreate(20, true, GameGuiClearPassengersLeft);
slowScore = 0;
@@ -617,11 +618,11 @@ void GameGuiBubbleShow(void)
if(GameGuiBubbleTimer == NULL)
{
Serial_printf("Started GameGuiBubbleTimer...\n");
- GameGuiBubbleTimer = SystemCreateTimer(50, false, &GameGuiBubbleStop);
+ GameGuiBubbleTimer = TimerCreate(50, false, &GameGuiBubbleStop);
}
else
{
- SystemTimerRestart(GameGuiBubbleTimer);
+ TimerRestart(GameGuiBubbleTimer);
}
GameGuiBubbleShowFlag = true;
@@ -641,11 +642,11 @@ void GameGuiBubble(TYPE_FLIGHT_DATA* ptrFlightData)
if(GameGuiBubbleVibrationTimer == NULL)
{
Serial_printf("Started GameGuiBubbleVibrationTimer...\n");
- GameGuiBubbleVibrationTimer = SystemCreateTimer(20, false, &GameGuiBubbleStopVibration);
+ GameGuiBubbleVibrationTimer = TimerCreate(20, false, &GameGuiBubbleStopVibration);
}
else
{
- SystemTimerRestart(GameGuiBubbleVibrationTimer);
+ TimerRestart(GameGuiBubbleVibrationTimer);
}
}