diff options
author | yexo <yexo@openttd.org> | 2010-02-22 14:16:50 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-02-22 14:16:50 +0000 |
commit | 61fe40ba73e84931d22f015783ce3c1817293b96 (patch) | |
tree | ca6f0a15ca7cd1b75c9c64f469a5d99523dc7db8 /src/station_cmd.cpp | |
parent | 880fedc192ff65a9916d8f0f7c94f930b62822ad (diff) | |
download | openttd-61fe40ba73e84931d22f015783ce3c1817293b96.tar.xz |
(svn r19196) -Codechange: change the airport tile animation info so it works just like for industry tiles
Diffstat (limited to 'src/station_cmd.cpp')
-rw-r--r-- | src/station_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index 807bbcb9f..0851eea61 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -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); } |