diff options
| author | Xavier ASUS <xavi92psx@gmail.com> | 2018-11-29 01:07:06 +0100 |
|---|---|---|
| committer | Xavier ASUS <xavi92psx@gmail.com> | 2018-11-29 01:07:06 +0100 |
| commit | 9cbaf49e93758b50e82a4d7d42762de242e7f086 (patch) | |
| tree | ccef6f3880f390783ded88fe844a18cba0fba30c /Source/Aircraft.c | |
| parent | 0b60fe23cdbca9df95c8cc2bf978874c29334e69 (diff) | |
| download | airport-9cbaf49e93758b50e82a4d7d42762de242e7f086.tar.gz | |
Some important bugfixes.
Added BUILDING_ATC_LOC.
Added more levels.
Diffstat (limited to 'Source/Aircraft.c')
| -rw-r--r-- | Source/Aircraft.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Aircraft.c b/Source/Aircraft.c index b4c527c..8e6e3ce 100644 --- a/Source/Aircraft.c +++ b/Source/Aircraft.c @@ -163,6 +163,7 @@ bool AircraftAddNew( TYPE_FLIGHT_DATA* const ptrFlightData, ptrAircraft->IsoPos.z = targets[0] % level_columns;
ptrAircraft->IsoPos.z <<= TILE_SIZE_BIT_SHIFT - 2;
+ ptrAircraft->IsoPos.z += 8;
ptrAircraft->IsoPos.z = fix16_from_int(ptrAircraft->IsoPos.z);
break;
@@ -176,6 +177,7 @@ bool AircraftAddNew( TYPE_FLIGHT_DATA* const ptrFlightData, ptrAircraft->IsoPos.z = targets[0] / level_columns;
ptrAircraft->IsoPos.z <<= TILE_SIZE_BIT_SHIFT - 2;
+ ptrAircraft->IsoPos.z += 8;
ptrAircraft->IsoPos.z = fix16_from_int(ptrAircraft->IsoPos.z);
break;
@@ -253,7 +255,7 @@ static AIRCRAFT_LIVERY AircraftLiveryFromFlightNumber(char* strFlightNumber) int32_t liveryIndex;
char strLivery[4];
- memset(strLivery, 0, 4 * sizeof (char) );
+ memset(strLivery, 0, ARRAY_SIZE(strLivery) );
strncpy(strLivery, strFlightNumber, 3);
|
