Changeset - r24573:ef270017c370
[Not reviewed]
master
0 1 0
Charles Pigott - 3 years ago 2020-12-28 10:26:57
charlespigott@googlemail.com
Fix #8437: Crash when using certain heliports with rotated airports
1 file changed with 8 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/aircraft_cmd.cpp
Show inline comments
 
@@ -949,7 +949,14 @@ static bool AircraftController(Aircraft 
 
			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. */
0 comments (0 inline, 0 general)