(svn r19196) -Codechange: change the airport tile animation info so it works just like for industry tiles

This commit is contained in:
yexo
2010-02-22 14:16:50 +00:00
parent 880fedc192
commit 61fe40ba73
2 changed files with 6 additions and 6 deletions

View File

@@ -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);
}