mirror of https://github.com/OpenTTD/OpenTTD
(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.
parent
fdc2e85184
commit
8316c4381f
|
@ -611,7 +611,7 @@ static void ShipController(Vehicle *v)
|
||||||
} else if (v->dest_tile != 0) {
|
} else if (v->dest_tile != 0) {
|
||||||
/* We have a target, let's see if we reached it... */
|
/* We have a target, let's see if we reached it... */
|
||||||
if (v->current_order.IsType(OT_GOTO_STATION) &&
|
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) {
|
DistanceManhattan(v->dest_tile, gp.new_tile) <= 3) {
|
||||||
/* We got within 3 tiles of our target buoy, so let's skip to our
|
/* We got within 3 tiles of our target buoy, so let's skip to our
|
||||||
* next order */
|
* next order */
|
||||||
|
|
Loading…
Reference in New Issue