mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +00:00
(svn r19196) -Codechange: change the airport tile animation info so it works just like for industry tiles
This commit is contained in:
parent
880fedc192
commit
61fe40ba73
@ -2733,7 +2733,7 @@ static void AnimateTile_Station(TileIndex tile)
|
||||
uint16 mask = (1 << ats->animation_speed) - 1;
|
||||
if (ats->animation_info != 0xFFFF && (_tick_counter & mask) == 0) {
|
||||
uint8 next_frame = GetStationAnimationFrame(tile) + 1;
|
||||
if (next_frame >= GB(ats->animation_info, 0, 8)) next_frame = 0;
|
||||
if (next_frame > GB(ats->animation_info, 0, 8)) next_frame = 0;
|
||||
SetStationAnimationFrame(tile, next_frame);
|
||||
MarkTileDirtyByTile(tile);
|
||||
}
|
||||
|
@ -55,7 +55,7 @@ static const AirportTileSpec _origin_airporttile_specs[] = {
|
||||
AT_NOANIM,
|
||||
|
||||
AT_NOANIM,
|
||||
AT(12, 2), // APT_RADAR_GRASS_FENCE_SW
|
||||
AT(11, 2), // APT_RADAR_GRASS_FENCE_SW
|
||||
AT_NOANIM,
|
||||
AT_NOANIM,
|
||||
AT_NOANIM,
|
||||
@ -63,7 +63,7 @@ static const AirportTileSpec _origin_airporttile_specs[] = {
|
||||
AT_NOANIM,
|
||||
AT_NOANIM,
|
||||
AT_NOANIM,
|
||||
AT(4, 1), // APT_GRASS_FENCE_NE_FLAG
|
||||
AT(3, 1), // APT_GRASS_FENCE_NE_FLAG
|
||||
|
||||
AT_NOANIM,
|
||||
AT_NOANIM,
|
||||
@ -77,8 +77,8 @@ static const AirportTileSpec _origin_airporttile_specs[] = {
|
||||
AT_NOANIM,
|
||||
|
||||
AT_NOANIM,
|
||||
AT(12, 2), // APT_RADAR_FENCE_SW
|
||||
AT(12, 2), // APT_RADAR_FENCE_NE
|
||||
AT(11, 2), // APT_RADAR_FENCE_SW
|
||||
AT(11, 2), // APT_RADAR_FENCE_NE
|
||||
AT_NOANIM,
|
||||
AT_NOANIM,
|
||||
AT_NOANIM,
|
||||
@ -101,7 +101,7 @@ static const AirportTileSpec _origin_airporttile_specs[] = {
|
||||
AT_NOANIM,
|
||||
AT_NOANIM,
|
||||
AT_NOANIM,
|
||||
AT(4, 1), // APT_GRASS_FENCE_NE_FLAG_2
|
||||
AT(3, 1), // APT_GRASS_FENCE_NE_FLAG_2
|
||||
};
|
||||
|
||||
assert_compile(NEW_AIRPORTTILE_OFFSET == lengthof(_origin_airporttile_specs));
|
||||
|
Loading…
Reference in New Issue
Block a user