Loading

Paste #pgbxqhdnq

  1.         //if any other station is nearby, except my own airports, return true
  2.         for(local tile = square.Begin(); square.HasNext(); tile = square.Next()) {
  3.             if(AITile.IsStationTile(tile) && AITile.GetOwner(tile) != AICompany.ResolveCompanyID(AICompany.COMPANY_SELF) ||
  4.                AITile.IsStationTile(tile) && AITile.GetOwner(tile) == AICompany.ResolveCompanyID(AICompany.COMPANY_SELF) && !AIStation.HasStationType(AIStation.GetStationID(tile), AIStation.STATION_AIRPORT)) {
  5.                 return true;
  6.             }
  7.         }

Comments