1
0
Fork 0

Fix #8437: Crash when using certain heliports with rotated airports

pull/8496/head
Charles Pigott 2020-12-28 10:26:57 +00:00 committed by Patric Stout
parent 619d714923
commit e21302f481
1 changed files with 8 additions and 1 deletions

View File

@ -949,7 +949,14 @@ static bool AircraftController(Aircraft *v)
return false;
}
/* Vehicle is now at the airport. */
/* Vehicle is now at the airport.
* Helicopter has arrived at the target landing pad, so the current position is also where it should land.
* Except for Oilrigs which are special due to being a 1x1 station, and helicopters land outside it. */
if (st->airport.type != AT_OILRIG) {
x = v->x_pos;
y = v->y_pos;
tile = TileVirtXY(x, y);
}
v->tile = tile;
/* Find altitude of landing position. */