From 3dbcc66cb1b8df44d3b462fdfa46d38e7f0f7441 Mon Sep 17 00:00:00 2001 From: smatz Date: Wed, 22 Apr 2009 00:12:37 +0000 Subject: (svn r16119) -Fix [FS#2582](r12167): road was removed when both the Remove button was active and Ctrl was pressed (Terkhen) --- src/road_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3-70-g09d2