summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-03-06 00:17:03 +0300
committerAndrei Karas <akaras@inbox.ru>2012-03-08 00:12:48 +0300
commit4f2e544cb7619b3448e81c5e2522af88d15feffd (patch)
tree19fd96354709bfc7c8c2ed15abb97f69991b1304
parentcb7e3ac1038b30028f5d62c312e1f3d5d21553d9 (diff)
downloadplus-4f2e544cb7619b3448e81c5e2522af88d15feffd.tar.gz
plus-4f2e544cb7619b3448e81c5e2522af88d15feffd.tar.bz2
plus-4f2e544cb7619b3448e81c5e2522af88d15feffd.tar.xz
plus-4f2e544cb7619b3448e81c5e2522af88d15feffd.zip
Fix big minimap scrolling with moving camera.
-rw-r--r--src/gui/minimap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/minimap.cpp b/src/gui/minimap.cpp
index b76e71069..8089a2feb 100644
--- a/src/gui/minimap.cpp
+++ b/src/gui/minimap.cpp
@@ -233,7 +233,7 @@ void Minimap::draw(gcn::Graphics *graphics)
+ viewport->getCameraRelativeX()) * mWidthProportion) / 32;
mMapOriginY = ((a.height) / 2) - (static_cast<float>(p.y
- + viewport->getCameraRelativeX()) * mHeightProportion) / 32;
+ + viewport->getCameraRelativeY()) * mHeightProportion) / 32;
const int minOriginX = a.width - mMapImage->mBounds.w;
const int minOriginY = a.height - mMapImage->mBounds.h;