diff options
author | rubidium <rubidium@openttd.org> | 2009-07-10 18:30:02 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-07-10 18:30:02 +0000 |
commit | 3b8d0621a2621531e9be38cf3247e015558f1971 (patch) | |
tree | fc75fa25c77168ae6d138cadd380b5d8802c800a /src/ship_cmd.cpp | |
parent | c654dedb28b9f3f15eda261545daa333534a7177 (diff) | |
download | openttd-3b8d0621a2621531e9be38cf3247e015558f1971.tar.xz |
(svn r16785) -Codechange: make ships going to buoys use OT_GOTO_WAYPOINT too
Diffstat (limited to 'src/ship_cmd.cpp')
-rw-r--r-- | src/ship_cmd.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ship_cmd.cpp b/src/ship_cmd.cpp index 1f04cf3d0..86586ddfe 100644 --- a/src/ship_cmd.cpp +++ b/src/ship_cmd.cpp @@ -626,8 +626,7 @@ static void ShipController(Ship *v) InvalidateWindowWidget(WC_VEHICLE_VIEW, v->index, VVW_WIDGET_START_STOP_VEH); } 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) && - Station::Get(v->current_order.GetDestination())->IsBuoy() && + if (v->current_order.IsType(OT_GOTO_WAYPOINT) && 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 */ |