Loading

Paste #pihxgwnhk

  1. function TownManager::GetNewTruckStopList(town, articulated) {
  2.         local result_list = AITileList(), tile_list = AITileList();
  3.         local dist = abs(AITown.GetPopulation(town)/400)+3;
  4.         tile_list.AddRectangle(AITown.GetLocation(town) + AIMap.GetTileIndex(-dist,-dist),
  5.                                                         AITown.GetLocation(town) + AIMap.GetTileIndex(dist,dist));
  6.         result_list.AddList(tile_list);
  7.         result_list.Valuate(Valuator.IsGoodForTruckStop, articulated);

Comments