diff options
author | smatz <smatz@openttd.org> | 2009-04-22 00:12:37 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-04-22 00:12:37 +0000 |
commit | 3dbcc66cb1b8df44d3b462fdfa46d38e7f0f7441 (patch) | |
tree | a7e194b4116a7daf48447e91c586fa919419f2ef /src | |
parent | 59d45a04d606cf7eeffed150f09497dfc56d1014 (diff) | |
download | openttd-3dbcc66cb1b8df44d3b462fdfa46d38e7f0f7441.tar.xz |
(svn r16119) -Fix [FS#2582](r12167): road was removed when both the Remove button was active and Ctrl was pressed (Terkhen)
Diffstat (limited to 'src')
-rw-r--r-- | src/road_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/road_gui.cpp b/src/road_gui.cpp index 5e2adc229..e041a08f4 100644 --- a/src/road_gui.cpp +++ b/src/road_gui.cpp @@ -602,7 +602,7 @@ struct BuildRoadToolbarWindow : Window { _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), - (_ctrl_pressed || _remove_button_clicked) ? + _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); break; |