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 | |
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
-rw-r--r-- | src/station_cmd.cpp | 2 | ||||
-rw-r--r-- | src/table/airporttiles.h | 10 |
2 files changed, 6 insertions, 6 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); } diff --git a/src/table/airporttiles.h b/src/table/airporttiles.h index 19843f731..2f3a889fe 100644 --- a/src/table/airporttiles.h +++ b/src/table/airporttiles.h @@ -55,7 +55,7 @@ static const AirportTileSpec _origin_airporttile_specs[] = { 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_airporttile_specs[] = { 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_airporttile_specs[] = { 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_airporttile_specs[] = { 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)); |