diff options
Diffstat (limited to 'src')
-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)); |