Mercurial > hg > openttd
changeset 3378:12889289cc36 draft
(svn r4180) -Fix: Fixed an assert in the elrail drawing code due to passing of a wrong variable. I wish the compiler would warn about different enum types used...
author | celestar <celestar@openttd.org> |
---|---|
date | Thu, 30 Mar 2006 15:47:18 +0000 |
parents | 3b161e4ed980 |
children | 2a321b899920 |
files | elrail.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/elrail.c +++ b/elrail.c @@ -283,7 +283,7 @@ IsBridgeTile(ti->tile) && IsBridgeMiddle(ti->tile) && !(_display_opt & DO_TRANS_BUILDINGS) && - GetBridgeHeight(t) <= TilePixelHeight(t) + GetBridgeHeight(ti->tile) <= TilePixelHeight(ti->tile) ) return; assert(PCPconfig != 0); /* We have a pylon on neither end of the wire, that doesn't work (since we have no sprites for that) */