summaryrefslogtreecommitdiff
path: root/tunnelbridge_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-10-19 06:46:41 +0000
committertron <tron@openttd.org>2005-10-19 06:46:41 +0000
commitb17b87469c353393e05b9cf3c7e391edc2332dab (patch)
treeb1be08aaabd03b45d086543edd2c1e7ae8031d8e /tunnelbridge_cmd.c
parentd50ef149928ba9f46cb68df6a7d94bad642c70b5 (diff)
downloadopenttd-b17b87469c353393e05b9cf3c7e391edc2332dab.tar.xz
(svn r3064) Replace some numbers by sprite names
Diffstat (limited to 'tunnelbridge_cmd.c')
-rw-r--r--tunnelbridge_cmd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tunnelbridge_cmd.c b/tunnelbridge_cmd.c
index aa509b428..dec5e6a3c 100644
--- a/tunnelbridge_cmd.c
+++ b/tunnelbridge_cmd.c
@@ -1126,13 +1126,13 @@ static void DrawTile_TunnelBridge(TileInfo *ti)
if (!(image&1)) {
const RailtypeInfo *rti = GetRailTypeInfo(GB(_m[ti->tile].m3, 0, 4));
// railway
- image = 0x3F3 + (ti->map5 & 1);
- if (ti->tileh != 0) image = _track_sloped_sprites[ti->tileh - 1] + 0x3F3;
+ image = SPR_RAIL_TRACK_Y + (ti->map5 & 1);
+ if (ti->tileh != 0) image = SPR_RAIL_TRACK_Y + _track_sloped_sprites[ti->tileh - 1];
image += rti->total_offset;
if (ice) image += rti->snow_offset;
} else {
// road
- image = 1332 + (ti->map5 & 1);
+ image = SPR_ROAD_Y + (ti->map5 & 1);
if (ti->tileh != 0) image = _road_sloped_sprites[ti->tileh - 1] + 0x53F;
if (ice) image += 19; // ice?
}