(svn r4390) -Codechange: Upon merging elrails, one direct map access to the railtype went unnoticed...
authorcelestar
Wed, 12 Apr 2006 15:08:48 +0000
changeset 3533 05537e42e2dc
parent 3532 2eb08a39d78d
child 3534 73b04ea04c28
(svn r4390) -Codechange: Upon merging elrails, one direct map access to the railtype went unnoticed...
tunnelbridge_cmd.c
--- a/tunnelbridge_cmd.c	Wed Apr 12 15:08:27 2006 +0000
+++ b/tunnelbridge_cmd.c	Wed Apr 12 15:08:48 2006 +0000
@@ -933,7 +933,7 @@
 
 		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?