(svn r27889) -Change: Do not cancel headquarter construction and engine-preview-query when shift-clicking (adf88)

This commit is contained in:
frosch 2017-07-11 19:37:10 +00:00
parent 64c5f00429
commit a682962719
2 changed files with 2 additions and 2 deletions

View File

@ -2381,7 +2381,7 @@ struct CompanyWindow : Window
virtual void OnPlaceObject(Point pt, TileIndex tile)
{
if (DoCommandP(tile, OBJECT_HQ, 0, CMD_BUILD_OBJECT | CMD_MSG(STR_ERROR_CAN_T_BUILD_COMPANY_HEADQUARTERS))) {
if (DoCommandP(tile, OBJECT_HQ, 0, CMD_BUILD_OBJECT | CMD_MSG(STR_ERROR_CAN_T_BUILD_COMPANY_HEADQUARTERS)) && !_shift_pressed) {
ResetObjectToPlace();
this->RaiseButtons();
}

View File

@ -128,7 +128,7 @@ struct EnginePreviewWindow : Window {
DoCommandP(0, this->window_number, 0, CMD_WANT_ENGINE_PREVIEW);
/* FALL THROUGH */
case WID_EP_NO:
delete this;
if (!_shift_pressed) delete this;
break;
}
}