(svn r11231) -Fix [FS#1311] (r11128): Someone misplaced a "static". This results in wrong bounding boxes for tunnels in X direction. Patch by frosch.
authorrubidium
Mon, 08 Oct 2007 20:42:33 +0000
changeset 8193 83a838a2a9b0
parent 8192 dcc489afe013
child 8194 34a2e15f6670
(svn r11231) -Fix [FS#1311] (r11128): Someone misplaced a "static". This results in wrong bounding boxes for tunnels in X direction. Patch by frosch.
src/tunnelbridge_cmd.cpp
--- a/src/tunnelbridge_cmd.cpp	Mon Oct 08 20:16:25 2007 +0000
+++ b/src/tunnelbridge_cmd.cpp	Mon Oct 08 20:42:33 2007 +0000
@@ -927,7 +927,7 @@
 			{  1,  0, -15, -14,  0, 15, 16,  1, 0, 1, 16, 15 }, // SW
 			{  0,  1, -14, -15, 15,  0,  1, 16, 1, 0, 15, 16 }, // NW
 		};
-		static const int *BB_data = _tunnel_BB[GetTunnelDirection(ti->tile)];
+		const int *BB_data = _tunnel_BB[GetTunnelDirection(ti->tile)];
 
 		bool catenary = false;