Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (IsDockingTile(n.GetTile()) && IsShipDestinationTile(n.GetTile(), Yapf().GetVehicle()->current_order.GetDestination())) {
- /* Check docking tile for occupancy */
- uint count = 0;
- if (DistanceManhattan(CalcClosestStationTile(Yapf().GetVehicle()->current_order.GetDestination(), Yapf().GetVehicle()->tile, STATION_DOCK), Yapf().GetVehicle()->tile) < 8) {
- HasVehicleOnPos(n.GetTile(), &count, &CountShipProc);
- }
- c += count * 3 * YAPF_TILE_LENGTH;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement