aboutsummaryrefslogtreecommitdiff
path: root/Source/Aircraft.c
diff options
context:
space:
mode:
authorXaviDCR92 <xavi.dcr@gmail.com>2017-06-11 13:58:33 +0200
committerXaviDCR92 <xavi.dcr@gmail.com>2017-06-11 13:58:33 +0200
commitd1f55e8b45df2dfd84bdde3e2566ef14c9ba40f1 (patch)
tree1b6f25f6dfecbbd94b7b9db271dea7cde8ea6221 /Source/Aircraft.c
parent022c72fe369da0045f9ca7dd4b8d4d7dd169c87c (diff)
downloadairport-d1f55e8b45df2dfd84bdde3e2566ef14c9ba40f1.tar.gz
* Tried to get some work done in MapEditor with no success so far.
* Timers with no repeat flag were being set to NULL, but this is not actually desired! * Reenabled transparency for aircraft shadow. * Deprecated NotificationRequest flags, and replaced by system timer handling.
Diffstat (limited to 'Source/Aircraft.c')
-rw-r--r--Source/Aircraft.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/Source/Aircraft.c b/Source/Aircraft.c
index 97ee1be..6e3a4ec 100644
--- a/Source/Aircraft.c
+++ b/Source/Aircraft.c
@@ -325,7 +325,7 @@ void AircraftRender(TYPE_PLAYER* ptrPlayer)
AircraftSpr.g = 0;
AircraftSpr.b = 0;
- //AircraftSpr.attribute |= ENABLE_TRANS | TRANS_MODE(0);
+ AircraftSpr.attribute |= ENABLE_TRANS | TRANS_MODE(0);
GfxSortSprite(&AircraftSpr);
}
@@ -336,7 +336,7 @@ void AircraftRender(TYPE_PLAYER* ptrPlayer)
AircraftSpr.x = cartPos.x - (AircraftSpr.w >> 1);
AircraftSpr.y = cartPos.y - (AircraftSpr.h >> 1);
- //AircraftSpr.attribute &= ~(ENABLE_TRANS | TRANS_MODE(0));
+ AircraftSpr.attribute &= ~(ENABLE_TRANS | TRANS_MODE(0));
CameraApplyCoordinatesToSprite(ptrPlayer, &AircraftSpr);
@@ -643,3 +643,18 @@ bool AircraftCheckCollision(TYPE_AIRCRAFT_DATA* ptrRefAircraft, TYPE_AIRCRAFT_DA
return false;
}
+
+void AircraftRenderFromTile(uint16_t tile)
+{
+ uint8_t i;
+
+ for(i = 0; i < GAME_MAX_AIRCRAFT; i++)
+ {
+ TYPE_AIRCRAFT_DATA* ptrAircraft = &AircraftData[i];
+
+ if(ptrAircraft->State != STATE_IDLE)
+ {
+
+ }
+ }
+}