From ebaecebc68a6a5c2382ecdf0e1c89d479ef46c93 Mon Sep 17 00:00:00 2001 From: Charles Pigott Date: Wed, 13 Jan 2021 14:56:04 +0000 Subject: [PATCH] Fix #8560: Planes were landing at the wrong height at airports with lowered hangar tiles --- src/aircraft_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp index 0495da0b26..09c5dc4335 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) {