1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-09-01 19:09:09 +00:00

Fix #8560: Planes were landing at the wrong height at airports with lowered hangar tiles

This commit is contained in:
Charles Pigott
2021-01-13 14:56:04 +00:00
parent f9dee5aaa0
commit ebaecebc68

View File

@@ -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) {