mirror of https://github.com/OpenTTD/OpenTTD
Fix #8437: Crash when using certain heliports with rotated airports
parent
619d714923
commit
e21302f481
|
@ -949,7 +949,14 @@ static bool AircraftController(Aircraft *v)
|
||||||
return false;
|
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;
|
v->tile = tile;
|
||||||
|
|
||||||
/* Find altitude of landing position. */
|
/* Find altitude of landing position. */
|
||||||
|
|
Loading…
Reference in New Issue