summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-08-14 09:46:36 +0000
committerrubidium <rubidium@openttd.org>2010-08-14 09:46:36 +0000
commit5933086e6177a671dc06ccaca0b07b5e9392cdd2 (patch)
tree43b5e0c660094df80666929e4f87789ca311b38f /src
parentb416e7266f535f006edca9cb52a6d074252b0766 (diff)
downloadopenttd-5933086e6177a671dc06ccaca0b07b5e9392cdd2.tar.xz
(svn r20489) -Fix [FS#4031]: [NoAI] checking whether water tiles are connected failed in some cases
Diffstat (limited to 'src')
-rw-r--r--src/ai/api/ai_marine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/api/ai_marine.cpp b/src/ai/api/ai_marine.cpp
index 59e9d9f5f..3890d2108 100644
--- a/src/ai/api/ai_marine.cpp
+++ b/src/ai/api/ai_marine.cpp
@@ -59,7 +59,7 @@
/* Tiles not neighbouring */
if (::DistanceManhattan(t1, t2) != 1) return false;
- DiagDirection to_other_tile = ::DiagdirBetweenTiles(t1, t2);
+ DiagDirection to_other_tile = ::DiagdirBetweenTiles(t2, t1);
/* Determine the reachable tracks from the shared edge */
TrackBits gtts1 = ::TrackStatusToTrackBits(::GetTileTrackStatus(t1, TRANSPORT_WATER, 0, to_other_tile)) & ::DiagdirReachesTracks(to_other_tile);