From 2832a95f259b5dd45c2654a7a6acc8c519660504 Mon Sep 17 00:00:00 2001 From: maedhros Date: Thu, 24 May 2007 09:24:46 +0000 Subject: (svn r9909) -Fix (r9897): Highlight road tunnels properly when building them. --- src/road_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/road_gui.cpp b/src/road_gui.cpp index ce8faaf3d..3723f675f 100644 --- a/src/road_gui.cpp +++ b/src/road_gui.cpp @@ -339,7 +339,7 @@ static void BuildRoadToolbWndProc(Window *w, WindowEvent *e) case WE_PLACE_PRESIZE: { TileIndex tile = e->we.place.tile; - DoCommand(tile, 0x200 | _cur_roadtype, 0, DC_AUTO, CMD_BUILD_TUNNEL); + DoCommand(tile, 0x200 | RoadTypeToRoadTypes(_cur_roadtype), 0, DC_AUTO, CMD_BUILD_TUNNEL); VpSetPresizeRange(tile, _build_tunnel_endtile == 0 ? tile : _build_tunnel_endtile); break; } -- cgit v1.2.3-70-g09d2