You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Start a game with OpenGFX+ Airports 0.2.1 or later (known as "Climate dependant airports" on Bananas)
- Build a 180 degree rotated small airport
- Build a normal oriented small airport
- Build an aircraft with orders to visit the hangar of each airport.
When the aircraft enters/leaves the hangar of the rotated airport it has to be rotated 180 degree in the wrong way.
It is true that the airplane has to turn around inside the usual non-rotated hangar, but not as much as it has to turn around in the rotated one.
If you make the airport transparent, you can see that the airplane enters, rotates 180 degrees, gets set with its nose in the direction of entering, and rotates 180 degrees again before exiting the hangar.
The code responsible for this is
void AircraftLeaveHangar(Aircraft *v) in src/aircraft_cmd.cpp, line 1251, sets v->direction = DIR_SE;
DIR_SE is the right direction to leave the hangar in unrotated airports, but obviously the wrong direction for rotated airports.
The attached patch fixes plane rotation for the rotated default airports.
It will break for hangars with a different orientation, ie in newgrf airports.
Zuu opened the ticket and wrote:
Reported version: trunk
Operating system: All
This issue was imported from FlySpray: https://bugs.openttd.org/task/4696
The text was updated successfully, but these errors were encountered: