/* Build the airports for real */ local last_cost = AIAccounting(); if (AITestMode() && AIAirport.BuildAirport(airport1_location, airport1_type, airport1_stationId)) { if (HasMoney(last_cost.GetCosts())) GetMoney(last_cost.GetCosts()); } if (!AIAirport.BuildAirport(airport1_location, airport1_type, airport1_stationId)) { RepayLoan(); AILog.Warning("Although the testing told us we could build 2 airports, it still failed on the first airport at tile " + airport1_location + "."); assert(AIError.GetLastError() != AIError.ERR_STATION_TOO_SPREAD_OUT); return -1; } RepayLoan(); last_cost.ResetCosts(); if (AITestMode() && AIAirport.BuildAirport(airport2_location, airport2_type, airport2_stationId)) { if (HasMoney(last_cost.GetCosts())) GetMoney(last_cost.GetCosts()); } if (!AIAirport.BuildAirport(airport2_location, airport2_type, airport2_stationId)) { RepayLoan(); AILog.Warning("Although the testing told us we could build 2 airports, it still failed on the second airport at tile " + airport2_location + "."); assert(AIError.GetLastError() != AIError.ERR_STATION_TOO_SPREAD_OUT); return -1; } RepayLoan();