Only check primary vehicle ships in RemoveDock
This commit is contained in:
@@ -3207,6 +3207,8 @@ static CommandCost RemoveDock(TileIndex tile, DoCommandFlag flags)
|
|||||||
ClearDockingTilesCheckingNeighbours(tile2);
|
ClearDockingTilesCheckingNeighbours(tile2);
|
||||||
|
|
||||||
for (Ship *s : Ship::Iterate()) {
|
for (Ship *s : Ship::Iterate()) {
|
||||||
|
if (!s->IsPrimaryVehicle()) continue;
|
||||||
|
|
||||||
/* Find all ships going to our dock. */
|
/* Find all ships going to our dock. */
|
||||||
if (s->current_order.GetDestination() != st->index) {
|
if (s->current_order.GetDestination() != st->index) {
|
||||||
continue;
|
continue;
|
||||||
|
Reference in New Issue
Block a user