diff options
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()); } } |