Changeset - r14844:21599fd3f08b
[Not reviewed]
master
0 1 0
yexo - 14 years ago 2010-03-18 15:20:21
yexo@openttd.org
(svn r19450) -Fix (r19197): animation callbacks for airport tiles where never called
1 file changed with 1 insertions and 8 deletions:
0 comments (0 inline, 0 general)
src/station_cmd.cpp
Show inline comments
 
@@ -2909,14 +2909,7 @@ static void AnimateTile_Station(TileInde
 
	}
 

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

	
0 comments (0 inline, 0 general)