mirror of https://github.com/OpenTTD/OpenTTD
Add: Do not try to cross an extended depot that has a ship inside.
parent
275c141bf4
commit
afcbba8d6b
|
@ -382,6 +382,10 @@ public:
|
||||||
c += count * 3 * YAPF_TILE_LENGTH;
|
c += count * 3 * YAPF_TILE_LENGTH;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (IsShipDepotTile(n.GetTile())) {
|
||||||
|
if (IsExtendedDepot(n.GetTile()) && IsDepotFullWithStoppedVehicles(n.GetTile())) c += YAPF_INFINITE_PENALTY;
|
||||||
|
}
|
||||||
|
|
||||||
/* Skipped tile cost for aqueducts. */
|
/* Skipped tile cost for aqueducts. */
|
||||||
c += YAPF_TILE_LENGTH * tf->m_tiles_skipped;
|
c += YAPF_TILE_LENGTH * tf->m_tiles_skipped;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue