From 7b797c50db311594e73cb625040472e68d5efca7 Mon Sep 17 00:00:00 2001 From: celestar Date: Wed, 12 Apr 2006 15:08:48 +0000 Subject: (svn r4390) -Codechange: Upon merging elrails, one direct map access to the railtype went unnoticed... --- tunnelbridge_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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? -- cgit v1.2.3-70-g09d2