mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-24 03:56:43 +00:00
Codechange: make EventState a scoped enum
This commit is contained in:
+3
-3
@@ -312,13 +312,13 @@ struct BuildDocksToolbarWindow : Window {
|
||||
/**
|
||||
* Handler for global hotkeys of the BuildDocksToolbarWindow.
|
||||
* @param hotkey Hotkey
|
||||
* @return ES_HANDLED if hotkey was accepted.
|
||||
* @return EventState::Handled if hotkey was accepted.
|
||||
*/
|
||||
static EventState DockToolbarGlobalHotkeys(int hotkey)
|
||||
{
|
||||
if (_game_mode != GameMode::Normal) return ES_NOT_HANDLED;
|
||||
if (_game_mode != GameMode::Normal) return EventState::NotHandled;
|
||||
Window *w = ShowBuildDocksToolbar();
|
||||
if (w == nullptr) return ES_NOT_HANDLED;
|
||||
if (w == nullptr) return EventState::NotHandled;
|
||||
return w->OnHotkey(hotkey);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user