changeset 17912:b92847541c85 draft

(svn r22716) -Fix: Murphy is a bitch
author planetmaker <planetmaker@openttd.org>
date Thu, 04 Aug 2011 17:22:18 +0000
parents bffca9b7ed7f
children 8ca0093a6809
files src/airport_gui.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/airport_gui.cpp
+++ b/src/airport_gui.cpp
@@ -108,7 +108,6 @@
 
 	virtual EventState OnKeyPress(uint16 key, uint16 keycode)
 	{
-		if (!CanBuildVehicleInfrastructure(VEH_AIRCRAFT)) return ES_NOT_HANDLED;
 		int num = CheckHotkeyMatch(airtoolbar_hotkeys, keycode, this);
 		if (num == -1) return ES_NOT_HANDLED;
 		this->OnClick(Point(), num, 1);
@@ -197,6 +196,7 @@
 
 EventState AirportToolbarGlobalHotkeys(uint16 key, uint16 keycode)
 {
+	if (!CanBuildVehicleInfrastructure(VEH_AIRCRAFT)) return ES_NOT_HANDLED;
 	int num = CheckHotkeyMatch<BuildAirToolbarWindow>(_airtoolbar_hotkeys, keycode, NULL, true);
 	if (num == -1) return ES_NOT_HANDLED;
 	Window *w = ShowBuildAirToolbar();