mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-06-19 11:39:35 +01:00
Codechange: Use FindVehicleOnPos instead of HasVehicleOnPos, if there is no stop condition.
This commit is contained in:
parent
fca3103d8c
commit
dacd77b2bd
@ -379,7 +379,7 @@ public:
|
|||||||
if (IsDockingTile(n.GetTile())) {
|
if (IsDockingTile(n.GetTile())) {
|
||||||
/* Check docking tile for occupancy. */
|
/* Check docking tile for occupancy. */
|
||||||
uint count = 0;
|
uint count = 0;
|
||||||
HasVehicleOnPos(n.GetTile(), &count, &CountShipProc);
|
FindVehicleOnPos(n.GetTile(), &count, &CountShipProc);
|
||||||
c += count * 3 * YAPF_TILE_LENGTH;
|
c += count * 3 * YAPF_TILE_LENGTH;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user