src/road_gui.cpp
changeset 6678 4d901bc54b74
parent 6677 8120427efe01
child 6691 f9adbb0be102
--- a/src/road_gui.cpp	Thu May 24 08:52:28 2007 +0000
+++ b/src/road_gui.cpp	Thu May 24 09:24:46 2007 +0000
@@ -339,7 +339,7 @@
 	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;
 	}