summaryrefslogtreecommitdiff
path: root/src/road_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-01-14 23:05:07 +0000
committerrubidium <rubidium@openttd.org>2010-01-14 23:05:07 +0000
commitc390e8f00efe2036432dd2d5e7a07b5333952e66 (patch)
tree0015c0fe9a997f29ec56ecd087dbbf7c8ff66b8f /src/road_gui.cpp
parented83388faa6936c96cdc389a8f9d8bee30e9ad84 (diff)
downloadopenttd-c390e8f00efe2036432dd2d5e7a07b5333952e66.tar.xz
(svn r18803) -Feature [FS#3318]: make building (long) roads work like building rail; build upon the first obstruction instead of failing totally. Patch by Terkhen.
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 9c8f5f67d..3479c4618 100644
--- a/src/road_gui.cpp
+++ b/src/road_gui.cpp
@@ -605,7 +605,7 @@ struct BuildRoadToolbarWindow : Window {
* not the 3rd bit set) */
_place_road_flag = (RoadFlags)((_place_road_flag & RF_DIR_Y) ? (_place_road_flag & 0x07) : (_place_road_flag >> 3));
- DoCommandP(end_tile, start_tile, _place_road_flag | (_cur_roadtype << 3) | (_one_way_button_clicked << 5),
+ DoCommandP(start_tile, end_tile, _place_road_flag | (_cur_roadtype << 3) | (_one_way_button_clicked << 5),
_remove_button_clicked ?
CMD_REMOVE_LONG_ROAD | CMD_MSG(_road_type_infos[_cur_roadtype].err_remove_road) :
CMD_BUILD_LONG_ROAD | CMD_MSG(_road_type_infos[_cur_roadtype].err_build_road), CcPlaySound1D);