diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-03-05 01:35:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-03-05 01:35:02 +0300 |
commit | 097ef639a433f5d87d675ee7551a1640788031bd (patch) | |
tree | 6d38ea5a0b134e402d8824e15ee215351b594360 /src/gui/windows/minimap.cpp | |
parent | 21b14e4b8708be1d9b804f61330ef7cd5521397d (diff) | |
download | manaverse-097ef639a433f5d87d675ee7551a1640788031bd.tar.gz manaverse-097ef639a433f5d87d675ee7551a1640788031bd.tar.bz2 manaverse-097ef639a433f5d87d675ee7551a1640788031bd.tar.xz manaverse-097ef639a433f5d87d675ee7551a1640788031bd.zip |
Rename actor functions getPosition and setPosition.
Diffstat (limited to 'src/gui/windows/minimap.cpp')
-rw-r--r-- | src/gui/windows/minimap.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/windows/minimap.cpp b/src/gui/windows/minimap.cpp index 371d98414..3f0f4c14e 100644 --- a/src/gui/windows/minimap.cpp +++ b/src/gui/windows/minimap.cpp @@ -281,7 +281,7 @@ void Minimap::draw2(Graphics *const graphics) const int h = rect.h; if (w > a.width || h > a.height) { - const Vector &p = localPlayer->getPosition(); + const Vector &p = localPlayer->getPixelPositionF(); mMapOriginX = (a.width / 2) - (p.x + static_cast<float>( viewport->getCameraRelativeX()) * mWidthProportion) / 32; @@ -382,7 +382,7 @@ void Minimap::draw2(Graphics *const graphics) dotSize - 1) * mHeightProportion); const int offsetWidth = CAST_S32(static_cast<float>( dotSize - 1) * mWidthProportion); - const Vector &pos = being->getPosition(); + const Vector &pos = being->getPixelPositionF(); graphics->fillRectangle(Rect( static_cast<float>(pos.x * mWidthProportion) / 32 @@ -435,7 +435,7 @@ void Minimap::draw2(Graphics *const graphics) } } - const Vector &pos = localPlayer->getPosition(); + const Vector &pos = localPlayer->getPixelPositionF(); const int gw = graphics->getWidth(); const int gh = graphics->getHeight(); |