Mercurial > hg > openttd
changeset 3533:57b407c99172 draft
(svn r4390) -Codechange: Upon merging elrails, one direct map access to the railtype went unnoticed...
author | celestar <celestar@openttd.org> |
---|---|
date | Wed, 12 Apr 2006 15:08:48 +0000 |
parents | 977e27b19c05 |
children | 1a9f5dcdf782 |
files | tunnelbridge_cmd.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tunnelbridge_cmd.c +++ b/tunnelbridge_cmd.c @@ -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?