summaryrefslogtreecommitdiff
path: root/src/rail_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-11-26 18:11:22 +0000
committerrubidium <rubidium@openttd.org>2011-11-26 18:11:22 +0000
commit95f88ea537aec0ff4d22e5d09a07bbe41a0d6510 (patch)
tree93bcbf3c12a6abe96745e272883c5bbb707d07d8 /src/rail_gui.cpp
parent104adbdb3ab9f6a8da64ff46e9706247a6161141 (diff)
downloadopenttd-95f88ea537aec0ff4d22e5d09a07bbe41a0d6510.tar.xz
(svn r23338) -Feature [FS#4841]: diagonal dragging the rail conversion tool when pressing CTRL
Diffstat (limited to 'src/rail_gui.cpp')
-rw-r--r--src/rail_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rail_gui.cpp b/src/rail_gui.cpp
index cffbeceff..80c2d143b 100644
--- a/src/rail_gui.cpp
+++ b/src/rail_gui.cpp
@@ -604,7 +604,7 @@ struct BuildRailToolbarWindow : Window {
break;
case RTW_CONVERT_RAIL:
- HandlePlacePushButton(this, RTW_CONVERT_RAIL, GetRailTypeInfo(_cur_railtype)->cursor.convert, HT_RECT);
+ HandlePlacePushButton(this, RTW_CONVERT_RAIL, GetRailTypeInfo(_cur_railtype)->cursor.convert, HT_RECT | HT_DIAGONAL);
this->last_user_action = widget;
break;
@@ -715,7 +715,7 @@ struct BuildRailToolbarWindow : Window {
break;
case DDSP_CONVERT_RAIL:
- DoCommandP(end_tile, start_tile, _cur_railtype, CMD_CONVERT_RAIL | CMD_MSG(STR_ERROR_CAN_T_CONVERT_RAIL), CcPlaySound10);
+ DoCommandP(end_tile, start_tile, _cur_railtype | (_ctrl_pressed ? 0x10 : 0), CMD_CONVERT_RAIL | CMD_MSG(STR_ERROR_CAN_T_CONVERT_RAIL), CcPlaySound10);
break;
case DDSP_REMOVE_STATION: