diff options
author | yexo <yexo@openttd.org> | 2010-03-18 15:20:21 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-03-18 15:20:21 +0000 |
commit | 1982307a05a341d66876421d3818d668599d43aa (patch) | |
tree | 748513e5f1a5156aa4f55deb451ed5bc2b3c16c6 /src | |
parent | 07cc875c5a11d8fc59c36fd49fb44d325d149069 (diff) | |
download | openttd-1982307a05a341d66876421d3818d668599d43aa.tar.xz |
(svn r19450) -Fix (r19197): animation callbacks for airport tiles where never called
Diffstat (limited to 'src')
-rw-r--r-- | src/station_cmd.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index 3f35649b4..6006a9420 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -2909,14 +2909,7 @@ static void AnimateTile_Station(TileIndex tile) } if (IsAirport(tile)) { - const AirportTileSpec *ats = AirportTileSpec::Get(GetStationGfx(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; - SetStationAnimationFrame(tile, next_frame); - MarkTileDirtyByTile(tile); - } + AnimateAirportTile(tile); } } |