Changeset - r14609:952e574afdf2
[Not reviewed]
master
0 2 0
yexo - 15 years ago 2010-02-22 14:16:50
yexo@openttd.org
(svn r19196) -Codechange: change the airport tile animation info so it works just like for industry tiles
2 files changed with 6 insertions and 6 deletions:
0 comments (0 inline, 0 general)
src/station_cmd.cpp
Show inline comments
 
@@ -2733,7 +2733,7 @@ static void AnimateTile_Station(TileInde
 
		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);
 
		}
src/table/airporttiles.h
Show inline comments
 
@@ -55,7 +55,7 @@ static const AirportTileSpec _origin_air
 
	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_air
 
	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_air
 
	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_air
 
	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));
0 comments (0 inline, 0 general)