Add: Replace independment map scrolling GUI settings with single option, and add choice to not lock cursor position when scrolling. (#6756)

This commit is contained in:
PeterN
2018-04-28 22:27:14 +01:00
committed by GitHub
parent 913119487f
commit cfe6a8ea4f
63 changed files with 35 additions and 242 deletions

View File

@@ -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;