diff options
author | frosch <frosch@openttd.org> | 2015-10-30 16:20:00 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2015-10-30 16:20:00 +0000 |
commit | 05ed2001d4749b0ad3d05948fe927576af4cdec4 (patch) | |
tree | c873df6234ea9f46df45d1e948f5b622cb40c911 /src/aircraft_cmd.cpp | |
parent | 2c9117fbdd0d4b5e02a121e46f244a6cea501c40 (diff) | |
download | openttd-05ed2001d4749b0ad3d05948fe927576af4cdec4.tar.xz |
(svn r27422) -Fix [FS#6341]: Aircraft picked the wrong airport entry point, if airports were rotated by 180 degree. (marcole)
Diffstat (limited to 'src/aircraft_cmd.cpp')
-rw-r--r-- | src/aircraft_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp index 18dcbea27..edb10af32 100644 --- a/src/aircraft_cmd.cpp +++ b/src/aircraft_cmd.cpp @@ -809,7 +809,7 @@ static byte AircraftGetEntryPoint(const Aircraft *v, const AirportFTAClass *apc, /* We are northwest or southeast of the airport */ dir = delta_y < 0 ? DIAGDIR_NW : DIAGDIR_SE; } - dir = ChangeDiagDir(dir, (DiagDirDiff)ReverseDiagDir(DirToDiagDir(rotation))); + dir = ChangeDiagDir(dir, DiagDirDifference(DIAGDIR_NE, DirToDiagDir(rotation))); return apc->entry_points[dir]; } |