summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2011-05-30 11:13:31 -0600
committerJared Adams <jaxad0127@gmail.com>2011-05-30 12:35:08 -0600
commit0248b2f58c783f21b7e68a20deadc0a3f942c869 (patch)
treefb9487625c282f59325f0585f08e2efd0683cd39 /src/being.cpp
parentb69c0511206d68a61fd08042d1c122c9fac22202 (diff)
downloadmana-0248b2f58c783f21b7e68a20deadc0a3f942c869.tar.gz
mana-0248b2f58c783f21b7e68a20deadc0a3f942c869.tar.bz2
mana-0248b2f58c783f21b7e68a20deadc0a3f942c869.tar.xz
mana-0248b2f58c783f21b7e68a20deadc0a3f942c869.zip
Remove some uneeded offsetting
Also fix position of being names. Reviewed-by: Bertram
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/being.cpp b/src/being.cpp
index d4bca7ce..48e29258 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -953,11 +953,9 @@ void Being::updateCoords()
// Monster names show above the sprite instead of below it
if (getType() == MONSTER)
- mDispName->adviseXY(getPixelX(),
- getPixelY() - getHeight() - getOffsetY()
- - mDispName->getHeight());
+ mDispName->adviseXY(getPixelX(), getPixelY() - getHeight());
else
- mDispName->adviseXY(getPixelX(), getPixelY());
+ mDispName->adviseXY(getPixelX(), getPixelY() + mDispName->getHeight());
}
void Being::flashName(int time)