diff options
author | peter1138 <peter1138@openttd.org> | 2006-04-12 12:33:21 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-04-12 12:33:21 +0000 |
commit | f733f9467798c9cf3b26bdc18233d46e4fc4c7a9 (patch) | |
tree | 9b9bc8cec16c5409db091066f4f648d4e976f69f /waypoint.c | |
parent | 5b33383f656606f7968f36fb2914c3d8c9656c1e (diff) | |
download | openttd-f733f9467798c9cf3b26bdc18233d46e4fc4c7a9.tar.xz |
(svn r4383) - Codechange: Remove extraneous code from 4354; no need to get RailTypeInfo when we already have it...
Diffstat (limited to 'waypoint.c')
-rw-r--r-- | waypoint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/waypoint.c b/waypoint.c index 00cc4f941..ea034529a 100644 --- a/waypoint.c +++ b/waypoint.c @@ -412,7 +412,7 @@ void DrawWaypointSprite(int x, int y, int stat_id, RailType railtype) cust = &stat->renderdata[2]; img = cust->ground_sprite; - img += (img < _custom_sprites_base) ? rti->total_offset : GetRailTypeInfo(railtype)->custom_ground_offset; + img += (img < _custom_sprites_base) ? rti->total_offset : rti->custom_ground_offset; if (img & PALETTE_MODIFIER_COLOR) img = (img & SPRITE_MASK); DrawSprite(img, x, y); |