diff options
author | belugas <belugas@openttd.org> | 2008-05-26 02:25:17 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2008-05-26 02:25:17 +0000 |
commit | 5f782d06be6ea754575d0cc854f8a55c619f62e2 (patch) | |
tree | 66731e20105adfc4ffabfe478b0f94cd6499cc3c /src | |
parent | cd8e589fa9c744a24d550de0dcd549f00ea6de1c (diff) | |
download | openttd-5f782d06be6ea754575d0cc854f8a55c619f62e2.tar.xz |
(svn r13257) -Fix(r13226): Typo has found its way on the code... Thanks cirdan
Diffstat (limited to 'src')
-rw-r--r-- | src/station_cmd.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index 479d05e3f..ec73c0a07 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -1730,21 +1730,21 @@ CommandCost CmdBuildAirport(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) uint newnoise_level = GetAirportNoiseLevelForTown(afc, t->xy, tile); /* Check if local auth would allow a new airport */ - bool autority_refused; + bool authority_refused; if (_settings.economy.station_noise_level) { /* do not allow to build a new airport if this raise the town noise over the maximum allowed by town */ - autority_refused = (t->noise_reached + newnoise_level) > t->MaxTownNoise(); + authority_refused = (t->noise_reached + newnoise_level) > t->MaxTownNoise(); } else { uint num = 0; const Station *st; FOR_ALL_STATIONS(st) { if (st->town == t && st->facilities & FACIL_AIRPORT && st->airport_type != AT_OILRIG) num++; } - autority_refused = (num >= 2); + authority_refused = (num >= 2); } - if (autority_refused) { + if (authority_refused) { SetDParam(0, t->index); return_cmd_error(STR_2035_LOCAL_AUTHORITY_REFUSES); } |