summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/being.cpp17
1 files changed, 14 insertions, 3 deletions
diff --git a/src/being.cpp b/src/being.cpp
index 3c1c6d15..770a5c5a 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -358,11 +358,22 @@ void Being::drawSpeech(Graphics *graphics)
else
{
graphics->setFont(hitRedFont);
- }
+ }
+
+ int textX = 0;
+ int textY = 0;
+ if (this->isPlayer()) {
+ textX = 16;
+ textY = 70;
+ }
+ else {
+ textX = 60;
+ textY = 0;
+ }
graphics->drawText(damage,
- text_x + 60,
- text_y - 60 - get_elapsed_time(damage_time) / 100,
+ text_x + textX,
+ text_y - textY - get_elapsed_time(damage_time) / 100,
gcn::Graphics::CENTER);
// Backing to default font