summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormaedhros <maedhros@openttd.org>2007-05-24 09:24:46 +0000
committermaedhros <maedhros@openttd.org>2007-05-24 09:24:46 +0000
commit2832a95f259b5dd45c2654a7a6acc8c519660504 (patch)
treed551a0862b40f2cf6d93e0fabd130dd77fdbb6cc
parent6b176e74c8d3c78c95fecfca1a9b882a7d33cd17 (diff)
downloadopenttd-2832a95f259b5dd45c2654a7a6acc8c519660504.tar.xz
(svn r9909) -Fix (r9897): Highlight road tunnels properly when building them.
-rw-r--r--src/road_gui.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}