summaryrefslogtreecommitdiff
path: root/tunnelbridge_cmd.c
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2006-04-12 15:08:48 +0000
committercelestar <celestar@openttd.org>2006-04-12 15:08:48 +0000
commit17da0bb976c9dd24a386fef203acef8f99e5cfbb (patch)
tree90ae57286c544db9e86302152d8370243c38300e /tunnelbridge_cmd.c
parentb91f2e4234e977a3d301b24b4e4688240a0b5816 (diff)
downloadopenttd-17da0bb976c9dd24a386fef203acef8f99e5cfbb.tar.xz
(svn r4390) -Codechange: Upon merging elrails, one direct map access to the railtype went unnoticed...
Diffstat (limited to 'tunnelbridge_cmd.c')
-rw-r--r--tunnelbridge_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tunnelbridge_cmd.c b/tunnelbridge_cmd.c
index 504579a3a..13ca8af7c 100644
--- a/tunnelbridge_cmd.c
+++ b/tunnelbridge_cmd.c
@@ -933,7 +933,7 @@ static void DrawTile_TunnelBridge(TileInfo *ti)
image += GetTunnelDirection(ti->tile) * 2;
DrawGroundSprite(image);
- if (GB(_m[ti->tile].m3, 0, 3) == RAILTYPE_ELECTRIC) DrawCatenary(ti);
+ if (GetRailType(ti->tile)) == RAILTYPE_ELECTRIC) DrawCatenary(ti);
AddSortableSpriteToDraw(image+1, ti->x + 15, ti->y + 15, 1, 1, 8, (byte)ti->z);
} else if (IsBridge(ti->tile)) { // XXX is this necessary?