(svn r4390) -Codechange: Upon merging elrails, one direct map access to the railtype went unnoticed...

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
celestar 18 years ago
parent b91f2e4234
commit 17da0bb976

@ -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?

Loading…
Cancel
Save