@@ -172,6 +172,7 @@ struct BuildAirToolbarWindow : Window {
|
|||||||
*/
|
*/
|
||||||
static EventState AirportToolbarGlobalHotkeys(int hotkey)
|
static EventState AirportToolbarGlobalHotkeys(int hotkey)
|
||||||
{
|
{
|
||||||
|
if (_game_mode != GM_NORMAL) return ES_NOT_HANDLED;
|
||||||
Window *w = ShowBuildAirToolbar();
|
Window *w = ShowBuildAirToolbar();
|
||||||
if (w == nullptr) return ES_NOT_HANDLED;
|
if (w == nullptr) return ES_NOT_HANDLED;
|
||||||
return w->OnHotkey(hotkey);
|
return w->OnHotkey(hotkey);
|
||||||
|
@@ -769,6 +769,7 @@ struct BuildRailToolbarWindow : Window {
|
|||||||
*/
|
*/
|
||||||
static EventState RailToolbarGlobalHotkeys(int hotkey)
|
static EventState RailToolbarGlobalHotkeys(int hotkey)
|
||||||
{
|
{
|
||||||
|
if (_game_mode != GM_NORMAL) return ES_NOT_HANDLED;
|
||||||
extern RailType _last_built_railtype;
|
extern RailType _last_built_railtype;
|
||||||
Window *w = ShowBuildRailToolbar(_last_built_railtype);
|
Window *w = ShowBuildRailToolbar(_last_built_railtype);
|
||||||
if (w == nullptr) return ES_NOT_HANDLED;
|
if (w == nullptr) return ES_NOT_HANDLED;
|
||||||
|
Reference in New Issue
Block a user