summaryrefslogtreecommitdiff
path: root/rail_cmd.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-04-12 12:33:21 +0000
committerpeter1138 <peter1138@openttd.org>2006-04-12 12:33:21 +0000
commitf733f9467798c9cf3b26bdc18233d46e4fc4c7a9 (patch)
tree9b9bc8cec16c5409db091066f4f648d4e976f69f /rail_cmd.c
parent5b33383f656606f7968f36fb2914c3d8c9656c1e (diff)
downloadopenttd-f733f9467798c9cf3b26bdc18233d46e4fc4c7a9.tar.xz
(svn r4383) - Codechange: Remove extraneous code from 4354; no need to get RailTypeInfo when we already have it...
Diffstat (limited to 'rail_cmd.c')
-rw-r--r--rail_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rail_cmd.c b/rail_cmd.c
index 4947fb7ab..20db9c4f5 100644
--- a/rail_cmd.c
+++ b/rail_cmd.c
@@ -1329,7 +1329,7 @@ static void DrawTile_Track(TileInfo *ti)
* up to the GRF file to decide that. */
image = cust->ground_sprite;
- image += (image < _custom_sprites_base) ? rti->total_offset : GetRailTypeInfo(GetRailType(ti->tile))->custom_ground_offset;
+ image += (image < _custom_sprites_base) ? rti->total_offset : rti->custom_ground_offset;
DrawGroundSprite(image);