diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-03-27 14:26:23 +0100 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-03-27 14:34:30 +0100 |
commit | 31c28bbd0349475079ed2111c32b3cd07400554e (patch) | |
tree | f3068b3760b1782321143e3a06fe55fca8ae48f1 /src/monster.cpp | |
parent | 057e55c47ef3194ad56a09128eaa959984f2fd4a (diff) | |
download | mana-31c28bbd0349475079ed2111c32b3cd07400554e.tar.gz mana-31c28bbd0349475079ed2111c32b3cd07400554e.tar.bz2 mana-31c28bbd0349475079ed2111c32b3cd07400554e.tar.xz mana-31c28bbd0349475079ed2111c32b3cd07400554e.zip |
Fixed position of dots on minimap
Also made mPx and mPy private and synchronize with mPos on
setPosition(). The side effects of setting destination and clearing the
path have been removed from setPosition(). Only the tmwserv
PlayerHandler seemed to rely on that feature.
Mantis-issue: 672
Diffstat (limited to 'src/monster.cpp')
-rw-r--r-- | src/monster.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/monster.cpp b/src/monster.cpp index eaea6225..f786471d 100644 --- a/src/monster.cpp +++ b/src/monster.cpp @@ -217,8 +217,9 @@ void Monster::setShowName(bool show) if (show) { - mText = new Text(getInfo().getName(), mPx + NAME_X_OFFSET, - mPy + NAME_Y_OFFSET - getHeight(), + mText = new Text(getInfo().getName(), + getPixelX() + NAME_X_OFFSET, + getPixelY() + NAME_Y_OFFSET - getHeight(), gcn::Graphics::CENTER, &guiPalette->getColor(Palette::MONSTER)); } @@ -232,7 +233,7 @@ void Monster::updateCoords() { if (mText) { - mText->adviseXY(mPx + NAME_X_OFFSET, - mPy + NAME_Y_OFFSET - getHeight()); + mText->adviseXY(getPixelX() + NAME_X_OFFSET, + getPixelY() + NAME_Y_OFFSET - getHeight()); } } |