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

@@ -190,6 +190,8 @@ struct BuildDocksToolbarWindow : Window {
case WID_DT_DEPOT: // Build depot button
DoCommandP(tile, _ship_depot_direction, 0, CMD_BUILD_SHIP_DEPOT | CMD_MSG(STR_ERROR_CAN_T_BUILD_SHIP_DEPOT), CcBuildDocks);
if (_ctrl_pressed == _settings_client.gui.persistent_depottools)
ResetObjectToPlace();
break;
case WID_DT_STATION: { // Build station button