From d1f55e8b45df2dfd84bdde3e2566ef14c9ba40f1 Mon Sep 17 00:00:00 2001 From: XaviDCR92 Date: Sun, 11 Jun 2017 13:58:33 +0200 Subject: * 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. --- Source/Aircraft.c | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'Source/Aircraft.c') 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) + { + + } + } +} -- cgit v1.2.3