1
0
Fork 0

(svn r22710) -Fix [FS#4704]: Allow AIAirport::GetNoiseLevelIncrease() also for expired airports.

release/1.2
frosch 2011-08-01 20:15:18 +00:00
parent 89c7193b8f
commit bf3a9dfdaf
2 changed files with 2 additions and 1 deletions

View File

@ -131,7 +131,7 @@
extern uint8 GetAirportNoiseLevelForTown(const AirportSpec *as, TileIndex town_tile, TileIndex tile);
if (!::IsValidTile(tile)) return -1;
if (!IsValidAirportType(type)) return -1;
if (!IsAirportInformationAvailable(type)) return -1;
if (_settings_game.economy.station_noise_level) {
const AirportSpec *as = ::AirportSpec::Get(type);

View File

@ -180,6 +180,7 @@ public:
* built at this tile.
* @param tile The tile to check.
* @param type The AirportType to check.
* @pre IsAirportInformationAvailable(type).
* @return The amount of noise added to the nearest town.
* @note The noise will be added to the town with TownID GetNearestTown(tile, type).
*/