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:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user