Codechange 80ebcc7: OptionMenuEntries prefix is OME not ONE (#12036)

This commit is contained in:
Loïc Guilloux 2024-02-08 01:22:01 +01:00 committed by GitHub
parent 11f5ac72a9
commit 82470f5c0d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -228,7 +228,7 @@ enum OptionMenuEntries {
OME_AI_SETTINGS, OME_AI_SETTINGS,
OME_GAMESCRIPT_SETTINGS, OME_GAMESCRIPT_SETTINGS,
OME_NEWGRFSETTINGS, OME_NEWGRFSETTINGS,
ONE_SANDBOX, OME_SANDBOX,
OME_TRANSPARENCIES, OME_TRANSPARENCIES,
OME_SHOW_TOWNNAMES, OME_SHOW_TOWNNAMES,
OME_SHOW_STATIONNAMES, OME_SHOW_STATIONNAMES,
@ -261,7 +261,7 @@ static CallBackFunction ToolbarOptionsClick(Window *w)
} }
list.push_back(std::make_unique<DropDownListStringItem>(STR_SETTINGS_MENU_NEWGRF_SETTINGS, OME_NEWGRFSETTINGS, false)); list.push_back(std::make_unique<DropDownListStringItem>(STR_SETTINGS_MENU_NEWGRF_SETTINGS, OME_NEWGRFSETTINGS, false));
if (_game_mode != GM_EDITOR && !_networking) { if (_game_mode != GM_EDITOR && !_networking) {
list.push_back(std::make_unique<DropDownListStringItem>(STR_SETTINGS_MENU_SANDBOX_OPTIONS, ONE_SANDBOX, false)); list.push_back(std::make_unique<DropDownListStringItem>(STR_SETTINGS_MENU_SANDBOX_OPTIONS, OME_SANDBOX, false));
} }
list.push_back(std::make_unique<DropDownListStringItem>(STR_SETTINGS_MENU_TRANSPARENCY_OPTIONS, OME_TRANSPARENCIES, false)); list.push_back(std::make_unique<DropDownListStringItem>(STR_SETTINGS_MENU_TRANSPARENCY_OPTIONS, OME_TRANSPARENCIES, false));
list.push_back(std::make_unique<DropDownListDividerItem>(-1, false)); list.push_back(std::make_unique<DropDownListDividerItem>(-1, false));
@ -294,7 +294,7 @@ static CallBackFunction MenuClickSettings(int index)
case OME_AI_SETTINGS: ShowAIConfigWindow(); return CBF_NONE; case OME_AI_SETTINGS: ShowAIConfigWindow(); return CBF_NONE;
case OME_GAMESCRIPT_SETTINGS: ShowGSConfigWindow(); return CBF_NONE; case OME_GAMESCRIPT_SETTINGS: ShowGSConfigWindow(); return CBF_NONE;
case OME_NEWGRFSETTINGS: ShowNewGRFSettings(!_networking && _settings_client.gui.UserIsAllowedToChangeNewGRFs(), true, true, &_grfconfig); return CBF_NONE; case OME_NEWGRFSETTINGS: ShowNewGRFSettings(!_networking && _settings_client.gui.UserIsAllowedToChangeNewGRFs(), true, true, &_grfconfig); return CBF_NONE;
case ONE_SANDBOX: ShowCheatWindow(); break; case OME_SANDBOX: ShowCheatWindow(); break;
case OME_TRANSPARENCIES: ShowTransparencyToolbar(); break; case OME_TRANSPARENCIES: ShowTransparencyToolbar(); break;
case OME_SHOW_TOWNNAMES: ToggleBit(_display_opt, DO_SHOW_TOWN_NAMES); break; case OME_SHOW_TOWNNAMES: ToggleBit(_display_opt, DO_SHOW_TOWN_NAMES); break;