Close depot building tools after placement (with setting)

This commit is contained in:
Pavel Stupnikov
2019-04-01 18:09:36 +03:00
parent 0f8fd5dc2c
commit 65d5d318e7
9 changed files with 24 additions and 4 deletions

View File

@@ -837,6 +837,8 @@ struct BuildRailToolbarWindow : Window {
DoCommandP(tile, _cur_railtype, ddir,
CMD_BUILD_TRAIN_DEPOT | CMD_MSG(STR_ERROR_CAN_T_BUILD_TRAIN_DEPOT),
CcRailDepot);
if (_ctrl_pressed == _settings_client.gui.persistent_depottools)
ResetObjectToPlace();
break;
case WID_RAT_BUILD_WAYPOINT: