Loading

Paste #p2gbtm0ut

  1.         local closestTownscopy = AIList();
  2.         for (local town = closestTowns.Begin(); closestTowns.HasNext(); town = closestTowns.Next()) {
  3.             local closest_town = AITile.GetClosestTown(tile);
  4.             if (closestTowns.HasItem(closest_town) {
  5.                 closestTownscopy.AddItem(town);
  6.             }
  7.         }
  8.         closestTowns.Clear();
  9.         closestTowns.AddList(closestTownscopy);

Version history

Revision # Author Created at
pstwsbjfb Anonymous 07 Sep 2018, 10:53:48 UTC Diff
p7wwtf7xn Anonymous 07 Sep 2018, 10:01:59 UTC Diff

Comments