1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-19 10:22:39 +01:00

Codechange: Creating enum for 'scrollwheel_scrolling' setting

This commit is contained in:
Steve Goldman
2024-06-18 14:47:44 -05:00
committed by rubidium42
parent e8be933ee6
commit c53ed9fad6
6 changed files with 15 additions and 8 deletions

View File

@@ -1790,7 +1790,7 @@ public:
void OnMouseWheel(int wheel) override
{
if (_settings_client.gui.scrollwheel_scrolling != 2) {
if (_settings_client.gui.scrollwheel_scrolling != SWS_OFF) {
const NWidgetBase *wid = this->GetWidget<NWidgetBase>(WID_SM_MAP);
int cursor_x = _cursor.pos.x - this->left - wid->pos_x;
int cursor_y = _cursor.pos.y - this->top - wid->pos_y;