Changeset - r22668:397c4b45e902
[Not reviewed]
master
0 2 0
frosch - 7 years ago 2017-07-11 19:37:10
frosch@openttd.org
(svn r27889) -Change: Do not cancel headquarter construction and engine-preview-query when shift-clicking (adf88)
2 files changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/company_gui.cpp
Show inline comments
 
@@ -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();
 
		}
src/engine_gui.cpp
Show inline comments
 
@@ -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;
 
		}
 
	}
0 comments (0 inline, 0 general)