(svn r10309) -Revert (part of r10308): "fixing" the bounding box for bridge entrances reveals one of the bugs that will be fixed when FS#119 is fixed.
authorrubidium
Sun, 24 Jun 2007 20:17:39 +0000
changeset 7540 a30a7ba9016f
parent 7539 eea0981e7f1a
child 7541 0b79c8fb5e7f
(svn r10309) -Revert (part of r10308): "fixing" the bounding box for bridge entrances reveals one of the bugs that will be fixed when FS#119 is fixed.
src/tunnelbridge_cmd.cpp
--- a/src/tunnelbridge_cmd.cpp	Sun Jun 24 20:06:10 2007 +0000
+++ b/src/tunnelbridge_cmd.cpp	Sun Jun 24 20:17:39 2007 +0000
@@ -1004,7 +1004,7 @@
 		 * it doesn't disappear behind it
 		 */
 		AddSortableSpriteToDraw(
-			image, pal, ti->x, ti->y, 16, 16, ti->tileh == SLOPE_FLAT ? 0 : 1, ti->z
+			image, pal, ti->x, ti->y, 16, 16, ti->tileh == SLOPE_FLAT ? 0 : 8, ti->z
 		);
 
 		if (GetBridgeTransportType(ti->tile) == TRANSPORT_ROAD) {