1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-02-01 00:24:27 +01:00

Codechange: Use enum class for setting values (#15074)

This commit is contained in:
Tyler Trahan
2026-01-10 17:40:48 -05:00
committed by GitHub
parent 6a06a76b5d
commit 18f2f7eb2d
29 changed files with 175 additions and 178 deletions

View File

@@ -439,7 +439,7 @@ struct MainWindow : Window
void OnMouseWheel(int wheel, WidgetID widget) override
{
if (widget != WID_M_VIEWPORT) return;
if (_settings_client.gui.scrollwheel_scrolling != SWS_OFF) {
if (_settings_client.gui.scrollwheel_scrolling != ScrollWheelScrolling::Off) {
bool in = wheel < 0;
/* When following, only change zoom - otherwise zoom to the cursor. */