summaryrefslogtreecommitdiff
path: root/src/aircraft_cmd.cpp
diff options
context:
space:
mode:
authorCharles Pigott <charlespigott@googlemail.com>2021-01-13 14:56:04 +0000
committerCharles Pigott <charlespigott@googlemail.com>2021-01-13 16:41:30 +0000
commitebaecebc68a6a5c2382ecdf0e1c89d479ef46c93 (patch)
tree99314ffe22796780db5fd01fb658916248d581da /src/aircraft_cmd.cpp
parentf9dee5aaa0a557987eeef41690a2a88536f4902b (diff)
downloadopenttd-ebaecebc68a6a5c2382ecdf0e1c89d479ef46c93.tar.xz
Fix #8560: Planes were landing at the wrong height at airports with lowered hangar tiles
Diffstat (limited to 'src/aircraft_cmd.cpp')
-rw-r--r--src/aircraft_cmd.cpp2
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) {