summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2005-07-03 09:04:43 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2005-07-03 09:04:43 +0000
commit79d63d624b44faa4085bd82eaa3519df77bbb58b (patch)
tree85fc46c8a6bb6a780ca2a30c4a21db7784eb2f8b /src
parent6458dc08c6345664c4ccfa467f8a43d78a257467 (diff)
downloadmana-client-79d63d624b44faa4085bd82eaa3519df77bbb58b.tar.gz
mana-client-79d63d624b44faa4085bd82eaa3519df77bbb58b.tar.bz2
mana-client-79d63d624b44faa4085bd82eaa3519df77bbb58b.tar.xz
mana-client-79d63d624b44faa4085bd82eaa3519df77bbb58b.zip
Trying to place damage text in a better position
Diffstat (limited to 'src')
-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