diff options
author | planetmaker <planetmaker@openttd.org> | 2011-08-04 17:22:18 +0000 |
---|---|---|
committer | planetmaker <planetmaker@openttd.org> | 2011-08-04 17:22:18 +0000 |
commit | ad254f2b7ce32d77d084661eb73cdf0fdcb21056 (patch) | |
tree | c4e23cd2d21b8b57383cbd9c09cafb0c71b8de00 /src | |
parent | d20b5eb91584cc251e45e49f3426cbe54eaf4ca7 (diff) | |
download | openttd-ad254f2b7ce32d77d084661eb73cdf0fdcb21056.tar.xz |
(svn r22716) -Fix: Murphy is a bitch
Diffstat (limited to 'src')
-rw-r--r-- | src/airport_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/airport_gui.cpp b/src/airport_gui.cpp index a4a27a057..a8feed7a4 100644 --- a/src/airport_gui.cpp +++ b/src/airport_gui.cpp @@ -108,7 +108,6 @@ struct BuildAirToolbarWindow : Window { 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 @@ Window *ShowBuildAirToolbar() 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(); |