diff options
Diffstat (limited to 'src/gui/minimap.cpp')
-rw-r--r-- | src/gui/minimap.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/minimap.cpp b/src/gui/minimap.cpp index 5ed18f84e..1289fcd40 100644 --- a/src/gui/minimap.cpp +++ b/src/gui/minimap.cpp @@ -228,11 +228,11 @@ void Minimap::draw(gcn::Graphics *graphics) mMapImage->mBounds.h > a.height) { const Vector &p = player_node->getPosition(); - mMapOriginX = (a.width / 2) - (static_cast<float>(p.x - + viewport->getCameraRelativeX()) * mWidthProportion) / 32; + mMapOriginX = (a.width / 2) - (p.x + static_cast<float>( + viewport->getCameraRelativeX()) * mWidthProportion) / 32; - mMapOriginY = (a.height / 2) - (static_cast<float>(p.y - + viewport->getCameraRelativeY()) * mHeightProportion) / 32; + mMapOriginY = (a.height / 2) - (p.y + static_cast<float>( + viewport->getCameraRelativeY()) * mHeightProportion) / 32; const int minOriginX = a.width - mMapImage->mBounds.w; const int minOriginY = a.height - mMapImage->mBounds.h; |