diff options
author | rubidium <rubidium@openttd.org> | 2010-07-19 17:00:54 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-07-19 17:00:54 +0000 |
commit | 5a836cdec79cea79ff3ef69c08f13a0546c6dacd (patch) | |
tree | b99ecea2bc6ed091855a354725adcf308c7c5ada /src/rail_cmd.cpp | |
parent | 34764feac226f4a962cfa7957db79feb617c900c (diff) | |
download | openttd-5a836cdec79cea79ff3ef69c08f13a0546c6dacd.tar.xz |
(svn r20187) -Codechange: move _tileh_to_sprite into a function in a more logical place and with a more descriptive name
Diffstat (limited to 'src/rail_cmd.cpp')
-rw-r--r-- | src/rail_cmd.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp index ab3444cbd..70a5a4325 100644 --- a/src/rail_cmd.cpp +++ b/src/rail_cmd.cpp @@ -1876,7 +1876,7 @@ static void DrawTrackBitsOverlay(TileInfo *ti, TrackBits track, const RailtypeIn default: image = SPR_FLAT_GRASS_TILE; break; } - image += _tileh_to_sprite[ti->tileh]; + image += SlopeToSpriteOffset(ti->tileh); DrawGroundSprite(image, PAL_NONE); } @@ -1966,7 +1966,7 @@ static void DrawTrackBitsOverlay(TileInfo *ti, TrackBits track, const RailtypeIn default: image = SPR_FLAT_GRASS_TILE; break; } - image += _tileh_to_sprite[fake_slope]; + image += SlopeToSpriteOffset(fake_slope); DrawGroundSprite(image, PAL_NONE, &(_halftile_sub_sprite[halftile_corner])); @@ -2038,7 +2038,7 @@ static void DrawTrackBits(TileInfo *ti, TrackBits track) case RAIL_GROUND_ICE_DESERT: image = SPR_FLAT_SNOW_DESERT_TILE; break; default: image = SPR_FLAT_GRASS_TILE; break; } - image += _tileh_to_sprite[ti->tileh]; + image += SlopeToSpriteOffset(ti->tileh); } } else { if (ti->tileh != SLOPE_FLAT) { |