changeset 3471:05eabc9fb366 draft

(svn r4316) -Codechange: finished r4257 (forgot one variable there)
author celestar <celestar@openttd.org>
date Fri, 07 Apr 2006 09:37:04 +0000
parents b04ae66805ea
children 34f02a91f219
files station_cmd.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/station_cmd.c
+++ b/station_cmd.c
@@ -1480,7 +1480,7 @@
 	66,
 };
 
-static const byte * const _airport_map5_tiles[] = {
+static const byte * const _airport_sections[] = {
 	_airport_sections_country,				// Country Airfield (small)
 	_airport_sections_town,						// City Airport (large)
 	_airport_sections_heliport,				// Heliport
@@ -1506,7 +1506,7 @@
 	SET_EXPENSES_TYPE(EXPENSES_CONSTRUCTION);
 
 	/* Check if a valid, buildable airport was chosen for construction */
-	if (p1 > lengthof(_airport_map5_tiles) || !HASBIT(GetValidAirports(), p1)) return CMD_ERROR;
+	if (p1 > lengthof(_airport_sections) || !HASBIT(GetValidAirports(), p1)) return CMD_ERROR;
 
 	tile = TileVirtXY(x, y);
 
@@ -1601,7 +1601,7 @@
 		if (airport_upgrade) UpdateAirplanesOnNewStation(st);
 
 		{
-			const byte *b = _airport_map5_tiles[p1];
+			const byte *b = _airport_sections[p1];
 
 			BEGIN_TILE_LOOP(tile_cur, w, h, tile) {
 				MakeAirport(tile_cur, st->owner, st->index, *b++);