summaryrefslogtreecommitdiff
path: root/src/gui/minimap.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-04-09 02:15:28 +0300
committerAndrei Karas <akaras@inbox.ru>2012-04-09 04:03:03 +0300
commit333745260338c876989744468a5f9c707e9bcc66 (patch)
tree46a2a99bd2b1a88810f016896a77d4ddd872ec63 /src/gui/minimap.cpp
parente60ac0a6bc0fd662cb7a5834896b3953a1bd07e8 (diff)
downloadmanaverse-333745260338c876989744468a5f9c707e9bcc66.tar.gz
manaverse-333745260338c876989744468a5f9c707e9bcc66.tar.bz2
manaverse-333745260338c876989744468a5f9c707e9bcc66.tar.xz
manaverse-333745260338c876989744468a5f9c707e9bcc66.zip
Fix code style.
Diffstat (limited to 'src/gui/minimap.cpp')
-rw-r--r--src/gui/minimap.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/minimap.cpp b/src/gui/minimap.cpp
index 8089a2feb..9c7ab76cb 100644
--- a/src/gui/minimap.cpp
+++ b/src/gui/minimap.cpp
@@ -229,10 +229,10 @@ 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
+ mMapOriginX = (a.width / 2) - (static_cast<float>(p.x
+ viewport->getCameraRelativeX()) * mWidthProportion) / 32;
- mMapOriginY = ((a.height) / 2) - (static_cast<float>(p.y
+ mMapOriginY = (a.height / 2) - (static_cast<float>(p.y
+ viewport->getCameraRelativeY()) * mHeightProportion) / 32;
const int minOriginX = a.width - mMapImage->mBounds.w;