From b69c0511206d68a61fd08042d1c122c9fac22202 Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Mon, 30 May 2011 18:42:43 +0200 Subject: 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. --- src/being.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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()); } -- cgit v1.2.3-70-g09d2