summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-02-21 14:02:00 +0000
committerrubidium <rubidium@openttd.org>2009-02-21 14:02:00 +0000
commit8316c4381fca1c51dab469e9209268421c9a50e4 (patch)
treea59a9d764be72214f799023918750be9fd951c23
parentfdc2e851840f919f71b7cdad328511600c7fe535 (diff)
downloadopenttd-8316c4381fca1c51dab469e9209268421c9a50e4.tar.xz
(svn r15545) -Fix [FS#2653]: if a buoy was placed directly in front of a dock, that dock was seen as a buoy and thus skipped once within 3 tiles.
-rw-r--r--src/ship_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ship_cmd.cpp b/src/ship_cmd.cpp
index 10d962357..40e0a1697 100644
--- a/src/ship_cmd.cpp
+++ b/src/ship_cmd.cpp
@@ -611,7 +611,7 @@ static void ShipController(Vehicle *v)
} else if (v->dest_tile != 0) {
/* We have a target, let's see if we reached it... */
if (v->current_order.IsType(OT_GOTO_STATION) &&
- IsBuoyTile(v->dest_tile) &&
+ GetStation(v->current_order.GetDestination())->IsBuoy() &&
DistanceManhattan(v->dest_tile, gp.new_tile) <= 3) {
/* We got within 3 tiles of our target buoy, so let's skip to our
* next order */