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