From 7d14b5036066d9391d52ab73ca4b26c03e3cb6c2 Mon Sep 17 00:00:00 2001 From: XaviDCR92 Date: Wed, 3 Jan 2018 21:17:28 +0100 Subject: * 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(). --- Source/GameStructures.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Source/GameStructures.h') 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); -- cgit v1.2.3