From 04515ffbb81db0b180b1bfb187531fbdaf39e7a0 Mon Sep 17 00:00:00 2001 From: Ahmed Samy Date: Wed, 11 Dec 2013 18:36:31 +0200 Subject: [PATCH] Fix map move pixels function Thanks to @dalkon for this. --- src/client/mapview.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/mapview.cpp b/src/client/mapview.cpp index 39bc80a7..fa55755d 100644 --- a/src/client/mapview.cpp +++ b/src/client/mapview.cpp @@ -566,8 +566,8 @@ Position MapView::getPosition(const Point& point, const Size& mapSize) void MapView::move(int x, int y) { - m_moveOffset.x = x; - m_moveOffset.y = y; + m_moveOffset.x += x; + m_moveOffset.y += y; } Rect MapView::calcFramebufferSource(const Size& destSize)