Advertisement
Guest User

Untitled

a guest
Feb 18th, 2020
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.46 KB | None | 0 0
  1.         if (IsDockingTile(n.GetTile()) && IsShipDestinationTile(n.GetTile(), Yapf().GetVehicle()->current_order.GetDestination())) {
  2.             /* Check docking tile for occupancy */
  3.             uint count = 0;
  4.             if (DistanceManhattan(CalcClosestStationTile(Yapf().GetVehicle()->current_order.GetDestination(), Yapf().GetVehicle()->tile, STATION_DOCK), Yapf().GetVehicle()->tile) < 8) {
  5.                 HasVehicleOnPos(n.GetTile(), &count, &CountShipProc);
  6.             }
  7.             c += count * 3 * YAPF_TILE_LENGTH;
  8.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement