diff options
author | belugas <belugas@openttd.org> | 2006-04-15 01:06:53 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2006-04-15 01:06:53 +0000 |
commit | ea706f8eade49a6dd61be942ba6d16e7847ccbeb (patch) | |
tree | 9f5582fd2da07ef84be1070e505d2b9bd98bbf03 /station_cmd.c | |
parent | 504f88902e99187d28748efbf19b1e92b5c8852f (diff) | |
download | openttd-ea706f8eade49a6dd61be942ba6d16e7847ccbeb.tar.xz |
(svn r4425) Fix bug introduced in r4411 : while IS_BYTE_INSIDE, max value is STRICKLY LESS THEN. This caused airports animations to stay unanimated. Industries were similarly affected.
Thanks to Richk67 for finding it.
Also, more Gfx define and use.
Diffstat (limited to 'station_cmd.c')
-rw-r--r-- | station_cmd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/station_cmd.c b/station_cmd.c index 5d3974bac..23348414b 100644 --- a/station_cmd.c +++ b/station_cmd.c @@ -2091,7 +2091,7 @@ static void AnimateTile_Station(TileIndex tile) // again hardcoded...was a quick hack // turning radar / windsack on airport - if (IS_BYTE_INSIDE(gfx, GFX_RADAR_LARGE_FIRST, GFX_RADAR_LARGE_LAST)) { + if (IS_BYTE_INSIDE(gfx, GFX_RADAR_LARGE_FIRST, GFX_RADAR_LARGE_LAST+1)) { if (_tick_counter & 3) return; @@ -2101,7 +2101,7 @@ static void AnimateTile_Station(TileIndex tile) SetStationGfx(tile, gfx); MarkTileDirtyByTile(tile); //added - begin - } else if (IS_BYTE_INSIDE(gfx, GFX_RADAR_INTERNATIONAL_FIRST, GFX_RADAR_METROPOLITAN_LAST)) { + } else if (IS_BYTE_INSIDE(gfx, GFX_RADAR_INTERNATIONAL_FIRST, GFX_RADAR_METROPOLITAN_LAST+1)) { if (_tick_counter & 3) return; @@ -2117,7 +2117,7 @@ static void AnimateTile_Station(TileIndex tile) SetStationGfx(tile, gfx); MarkTileDirtyByTile(tile); //added - end - } else if (IS_BYTE_INSIDE(gfx, GFX_WINDSACK_FIRST, GFX_WINDSACK_LAST)) { + } else if (IS_BYTE_INSIDE(gfx, GFX_WINDSACK_FIRST, GFX_WINDSACK_LAST+1)) { if (_tick_counter & 1) return; |