diff options
author | Charles Pigott <charlespigott@googlemail.com> | 2021-01-13 14:56:04 +0000 |
---|---|---|
committer | Charles Pigott <charlespigott@googlemail.com> | 2021-01-13 16:41:30 +0000 |
commit | ebaecebc68a6a5c2382ecdf0e1c89d479ef46c93 (patch) | |
tree | 99314ffe22796780db5fd01fb658916248d581da | |
parent | f9dee5aaa0a557987eeef41690a2a88536f4902b (diff) | |
download | openttd-ebaecebc68a6a5c2382ecdf0e1c89d479ef46c93.tar.xz |
Fix #8560: Planes were landing at the wrong height at airports with lowered hangar tiles
-rw-r--r-- | src/aircraft_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp index 0495da0b2..09c5dc433 100644 --- a/src/aircraft_cmd.cpp +++ b/src/aircraft_cmd.cpp @@ -1114,7 +1114,7 @@ static bool AircraftController(Aircraft *v) if ((amd.flag & (AMED_LAND | AMED_BRAKE)) && st != nullptr) { assert(st->airport.HasHangar()); TileIndex hangar_tile = st->airport.GetHangarTile(0); - airport_z = TilePixelHeight(hangar_tile) + 1; // To avoid clashing with the shadow + airport_z = GetTileMaxPixelZ(hangar_tile) + 1; // To avoid clashing with the shadow } if (amd.flag & AMED_LAND) { |