From a2d4dc030ef2240abfab1001bdb8ee954f3dd0d1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 6 Mar 2012 00:17:03 +0300 Subject: Fix big minimap scrolling with moving camera. --- src/gui/minimap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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(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; -- cgit v1.2.3-70-g09d2