diff options
author | rubidium <rubidium@openttd.org> | 2010-08-03 16:38:15 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-08-03 16:38:15 +0000 |
commit | fc39a8bec17dcd316b7f0ba5b80bd11f2327cf06 (patch) | |
tree | d640312bdad6009a4468ffa245b288c0cd041c97 /src/ai/api/ai_marine.cpp | |
parent | 04a9a58ecd2e22025c794f72d378b4e718a92267 (diff) | |
download | openttd-fc39a8bec17dcd316b7f0ba5b80bd11f2327cf06.tar.xz |
(svn r20348) -Fix [FS#4004]: [NoAI] Ship depots were constructed along the wrong axis
Diffstat (limited to 'src/ai/api/ai_marine.cpp')
-rw-r--r-- | src/ai/api/ai_marine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/api/ai_marine.cpp b/src/ai/api/ai_marine.cpp index 0e2e26a8a..59e9d9f5f 100644 --- a/src/ai/api/ai_marine.cpp +++ b/src/ai/api/ai_marine.cpp @@ -77,7 +77,7 @@ EnforcePrecondition(false, ::IsValidTile(front)); EnforcePrecondition(false, (::TileX(front) == ::TileX(tile)) != (::TileY(front) == ::TileY(tile))); - return AIObject::DoCommand(tile, ::TileY(front) == ::TileY(tile), 0, CMD_BUILD_SHIP_DEPOT); + return AIObject::DoCommand(tile, ::TileX(front) == ::TileX(tile), 0, CMD_BUILD_SHIP_DEPOT); } /* static */ bool AIMarine::BuildDock(TileIndex tile, StationID station_id) |