aboutsummaryrefslogtreecommitdiff
path: root/Source/GameStructures.h
diff options
context:
space:
mode:
authorXaviDCR92 <xavi.dcr@gmail.com>2018-01-03 21:17:28 +0100
committerXaviDCR92 <xavi.dcr@gmail.com>2018-01-03 21:17:28 +0100
commit7d14b5036066d9391d52ab73ca4b26c03e3cb6c2 (patch)
treeffb09d916304aa361946cad00858b178071164e2 /Source/GameStructures.h
parentb094335404446183954eb1ccaba33f5f4888eacf (diff)
downloadairport-7d14b5036066d9391d52ab73ca4b26c03e3cb6c2.tar.gz
* Aircraft.c: since "rotate" member != 0 would render ArrowSpr incorrectly, I have created two separate sprites: LeftRightArrowSpr and UpDownArrowSpr. Still, H_FLIP isn't working properly.
* GameGui.c: new function GameGuiCalculateNextAircraftTime(), which calculates remaining time for next aircraft on the list. * GameStructures.h: new parameter NextAircraftTime for TYPE_PLAYER structures. * Game.c: added call to new function GameGuiCalculateNextAircraftTime().
Diffstat (limited to 'Source/GameStructures.h')
-rw-r--r--Source/GameStructures.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/GameStructures.h b/Source/GameStructures.h
index 17fee7a..51ee103 100644
--- a/Source/GameStructures.h
+++ b/Source/GameStructures.h
@@ -81,7 +81,7 @@ typedef struct t_cartpos
typedef struct t_tileData
{
- bool ShowTile;
+ bool ShowTile;
TYPE_CARTESIAN_POS CartPos;
unsigned char r;
unsigned char g;
@@ -209,6 +209,8 @@ typedef struct
TYPE_CAMERA Camera;
// Array of tiles which will change their RGB values when displayed under certain player states.
uint16_t RwyArray[GAME_MAX_RWY_LENGTH];
+ // Remaining time for next aircraft (if any).
+ uint16_t NextAircraftTime;
// Pad callbacks.
bool (*PadKeyPressed_Callback)(unsigned short);