(svn r13257) -Fix(r13226): Typo has found its way on the code... Thanks cirdan
authorbelugas
Mon, 26 May 2008 02:25:17 +0000
changeset 10709 348166bd0065
parent 10708 5f1e9cffcfa5
child 10710 c824cdf28454
(svn r13257) -Fix(r13226): Typo has found its way on the code... Thanks cirdan
src/station_cmd.cpp
--- a/src/station_cmd.cpp	Mon May 26 00:31:36 2008 +0000
+++ b/src/station_cmd.cpp	Mon May 26 02:25:17 2008 +0000
@@ -1730,21 +1730,21 @@
 	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);
 	}