Loading

Revision differences

Old revision #penqudfnqNew revision #pknb4f6ep
11    }  11    }  
12    RepayLoan();  12    RepayLoan();  
13  13  
14    last_cost.ResetCosts(); 14    last_cost.ResetCosts();
   15    if (AITestMode() && AIAirport.BuildAirport(airport2_location, airport2_type, airport2_stationId)) {
   16        if (HasMoney(last_cost.GetCosts())) GetMoney(last_cost.GetCosts());
   17    }
   18    if (!AIAirport.BuildAirport(airport2_location, airport2_type, airport2_stationId)) {
   19        RepayLoan();
   20        AILog.Warning("Although the testing told us we could build 2 airports, it still failed on the second airport at tile " + airport2_location + ".");
   21        assert(AIError.GetLastError() != AIError.ERR_STATION_TOO_SPREAD_OUT);
   22        return -1;
   23    }
   24    RepayLoan();