summaryrefslogtreecommitdiff
path: root/station_cmd.c
diff options
context:
space:
mode:
authorrichk <richk@openttd.org>2006-06-25 13:42:37 +0000
committerrichk <richk@openttd.org>2006-06-25 13:42:37 +0000
commit1423445050bc082344ad3433204372e478309cf5 (patch)
treeffe41531412d4f33ca9b61dd59a4655b8967ef21 /station_cmd.c
parent1522fbb397c896f819e04b24a519312450c4a3b8 (diff)
downloadopenttd-1423445050bc082344ad3433204372e478309cf5.tar.xz
(svn r5362) - Fix: Updated sprites in New Airports to be allow cleaner replacement by newgrf graphics. All tiles now use SPR_AIRPORT_APRON as the tarmac. Created two new sprites in airports.grf for half-grass half-tarmac tiles on Intercontinental airport.
Diffstat (limited to 'station_cmd.c')
-rw-r--r--station_cmd.c18
1 files changed, 15 insertions, 3 deletions
diff --git a/station_cmd.c b/station_cmd.c
index 386a71a7a..27e4ebbf1 100644
--- a/station_cmd.c
+++ b/station_cmd.c
@@ -1603,12 +1603,12 @@ static const byte _airport_sections_intercontinental[] = {
102, 120, 89, 89, 89, 89, 89, 89, 118,
120, 22, 22, 22, 22, 22, 22, 119, 117,
87, 54, 87, 8, 8, 8, 8, 51, 117,
- 87, 18, 87, 85, 116, 116, 8, 9, 10,
+ 87, 162, 87, 85, 116, 116, 8, 9, 10,
87, 8, 8, 11, 31, 11, 8, 160, 32,
32, 160, 8, 11, 27, 11, 8, 8, 10,
87, 8, 8, 11, 30, 11, 8, 8, 10,
- 87, 142, 8, 11, 29, 11, 10, 12, 10,
- 87, 58, 87, 8, 8, 8, 10, 56, 117,
+ 87, 142, 8, 11, 29, 11, 10, 163, 10,
+ 87, 164, 87, 8, 8, 8, 10, 37, 117,
87, 120, 89, 89, 89, 89, 89, 89, 119,
121, 22, 22, 22, 22, 22, 22, 119, 37
};
@@ -2241,6 +2241,7 @@ static void TileLoop_Station(TileIndex tile)
case GFX_RADAR_INTERNATIONAL_FIRST:
case GFX_RADAR_METROPOLITAN_FIRST:
case GFX_RADAR_DISTRICTWE_FIRST: // radar district W-E airport
+ case GFX_WINDSACK_INTERCON_FIRST : // for intercontinental airport
AddAnimatedTile(tile);
break;
@@ -2300,6 +2301,17 @@ static void AnimateTile_Station(TileIndex tile)
SetStationGfx(tile, gfx);
MarkTileDirtyByTile(tile);
+ // handle intercontinental windsock
+ } else if (IS_BYTE_INSIDE(gfx, GFX_WINDSACK_INTERCON_FIRST, GFX_WINDSACK_INTERCON_LAST+1)) {
+ if (_tick_counter & 1)
+ return;
+
+ if (++gfx == GFX_WINDSACK_INTERCON_LAST+1) {
+ gfx = GFX_WINDSACK_INTERCON_FIRST;
+ }
+
+ SetStationGfx(tile, gfx);
+ MarkTileDirtyByTile(tile);
}
}