diff options
author | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-05-30 18:42:43 +0200 |
---|---|---|
committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-05-30 18:42:43 +0200 |
commit | b69c0511206d68a61fd08042d1c122c9fac22202 (patch) | |
tree | 53dfd0cba3fbbfde52908277f678660fe62039e9 /src/being.cpp | |
parent | 1b3bceb471a0c28908a2d84f3cf658036cbea761 (diff) | |
download | mana-b69c0511206d68a61fd08042d1c122c9fac22202.tar.gz mana-b69c0511206d68a61fd08042d1c122c9fac22202.tar.bz2 mana-b69c0511206d68a61fd08042d1c122c9fac22202.tar.xz mana-b69c0511206d68a61fd08042d1c122c9fac22202.zip |
Fix monsters name display.
The monster offset wasn't counted anymore so I had to readd it
in the display coordinates.
Part of issue: #345.
Diffstat (limited to 'src/being.cpp')
-rw-r--r-- | src/being.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/being.cpp b/src/being.cpp index d6c5fd55..d4bca7ce 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -954,7 +954,8 @@ void Being::updateCoords() // Monster names show above the sprite instead of below it if (getType() == MONSTER) mDispName->adviseXY(getPixelX(), - getPixelY() - getHeight() - mDispName->getHeight()); + getPixelY() - getHeight() - getOffsetY() + - mDispName->getHeight()); else mDispName->adviseXY(getPixelX(), getPixelY()); } |