(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...
authorcelestar
Thu, 30 Mar 2006 15:47:18 +0000
changeset 3378 4057cbcc6b86
parent 3377 608cf1405409
child 3379 50b253bb9819
(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...
elrail.c
--- a/elrail.c	Thu Mar 30 15:06:49 2006 +0000
+++ b/elrail.c	Thu Mar 30 15:47:18 2006 +0000
@@ -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) */