Loading

Paste #p0lthy3jn

  1.                 local adjacentStationId = checkAdjacentStation(tile, a);
  2.                 local nearest_town;
  3.                 if (adjacentStationId == AIStation.STATION_NEW) {
  4.                     nearest_town = AITile.GetClosestTown(tile);
  5.                     if (nearest_town != town) continue;
  6.                 } else {
  7.                     nearest_town = AIStation.GetNearestTown(adjacentStationId);
  8.                     if (nearest_town != town) {
  9.                         adjacentStationId = AIStation.STATION_NEW;
  10.                         nearest_town = AITile.GetClosestTown(tile);
  11.                         if (nearest_town != town) continue;
  12.                     }
  13.                 }

Comments