diff options
author | PeterN <peter@fuzzle.org> | 2018-04-28 22:27:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-28 22:27:14 +0100 |
commit | cfe6a8ea4fc38d58babcc6e7b67a9185ee66078c (patch) | |
tree | 866b6e14defd796b53551c1efe34a6c558a9699b /src/smallmap_gui.cpp | |
parent | 913119487fa58bb4346af8d0024f95b6517f4d46 (diff) | |
download | openttd-cfe6a8ea4fc38d58babcc6e7b67a9185ee66078c.tar.xz |
Add: Replace independment map scrolling GUI settings with single option, and add choice to not lock cursor position when scrolling. (#6756)
Diffstat (limited to 'src/smallmap_gui.cpp')
-rw-r--r-- | src/smallmap_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/smallmap_gui.cpp b/src/smallmap_gui.cpp index 4ea887c06..56ed3291d 100644 --- a/src/smallmap_gui.cpp +++ b/src/smallmap_gui.cpp @@ -1628,7 +1628,7 @@ void SmallMapWindow::SetNewScroll(int sx, int sy, int sub) /* virtual */ void SmallMapWindow::OnScroll(Point delta) { - _cursor.fix_at = true; + if (_settings_client.gui.scroll_mode == VSM_VIEWPORT_RMB_FIXED || _settings_client.gui.scroll_mode == VSM_MAP_RMB_FIXED) _cursor.fix_at = true; /* While tile is at (delta.x, delta.y)? */ int sub; |