diff options
author | rubidium <rubidium@openttd.org> | 2009-09-08 10:12:13 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-09-08 10:12:13 +0000 |
commit | dcd6b2096d0b8ecd1d9b95d56a8183e6bd604de6 (patch) | |
tree | ee8a9a27dff20f527d1de1e60a7c4799223d9a34 /src/rail_gui.cpp | |
parent | 8cbcf17421a841696185db6318f2ed44ede9031c (diff) | |
download | openttd-dcd6b2096d0b8ecd1d9b95d56a8183e6bd604de6.tar.xz |
(svn r17471) -Change: when removing a station or waypoint keep the rail unless Ctrl is pressed. This makes the behaviour consistent between the two.
Diffstat (limited to 'src/rail_gui.cpp')
-rw-r--r-- | src/rail_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rail_gui.cpp b/src/rail_gui.cpp index 0c97b4d5e..7a060a628 100644 --- a/src/rail_gui.cpp +++ b/src/rail_gui.cpp @@ -769,14 +769,14 @@ struct BuildRailToolbarWindow : Window { if (this->IsWidgetLowered(RTW_BUILD_STATION)) { /* Station */ if (_remove_button_clicked) { - DoCommandP(end_tile, start_tile, 0, CMD_REMOVE_FROM_RAIL_STATION | CMD_MSG(STR_ERROR_CAN_T_REMOVE_PART_OF_STATION), CcPlaySound1E); + DoCommandP(end_tile, start_tile, _ctrl_pressed ? 0 : 1, CMD_REMOVE_FROM_RAIL_STATION | CMD_MSG(STR_ERROR_CAN_T_REMOVE_PART_OF_STATION), CcPlaySound1E); } else { HandleStationPlacement(start_tile, end_tile); } } else { /* Waypoint */ if (_remove_button_clicked) { - DoCommandP(end_tile, start_tile, 0, CMD_REMOVE_FROM_RAIL_WAYPOINT | CMD_MSG(STR_ERROR_CAN_T_REMOVE_TRAIN_WAYPOINT), CcPlaySound1E); + DoCommandP(end_tile, start_tile, _ctrl_pressed ? 0 : 1, CMD_REMOVE_FROM_RAIL_WAYPOINT | CMD_MSG(STR_ERROR_CAN_T_REMOVE_TRAIN_WAYPOINT), CcPlaySound1E); } else { TileArea ta(start_tile, end_tile); uint32 p1 = _cur_railtype | (select_method == VPM_FIX_X ? AXIS_X : AXIS_Y) << 4 | ta.w << 8 | ta.h << 16 | _ctrl_pressed << 24; |