summaryrefslogtreecommitdiff
path: root/src/road_gui.cpp
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
commitbbc0123cb662fc9cabe6fe64f53ced225587c2b3 (patch)
treed551a0862b40f2cf6d93e0fabd130dd77fdbb6cc /src/road_gui.cpp
parent29123cf2756b7325f48376501bec5c33d0e8c8ca (diff)
downloadopenttd-bbc0123cb662fc9cabe6fe64f53ced225587c2b3.tar.xz
(svn r9909) -Fix (r9897): Highlight road tunnels properly when building them.
Diffstat (limited to 'src/road_gui.cpp')
-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;
}