summaryrefslogtreecommitdiff
path: root/src/engine.cpp
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2005-04-10 20:59:34 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2005-04-10 20:59:34 +0000
commitbb9810d704a2f81da41e99cd9a1b03593dbe3a1c (patch)
tree237a6a184397994f4f4d93db63100d4b4f1bbe18 /src/engine.cpp
parent4b376c30487ba98ede708c5e219f4bc9d6a72951 (diff)
downloadmana-bb9810d704a2f81da41e99cd9a1b03593dbe3a1c.tar.gz
mana-bb9810d704a2f81da41e99cd9a1b03593dbe3a1c.tar.bz2
mana-bb9810d704a2f81da41e99cd9a1b03593dbe3a1c.tar.xz
mana-bb9810d704a2f81da41e99cd9a1b03593dbe3a1c.zip
Adding player names and fixing emoticon position
Diffstat (limited to 'src/engine.cpp')
-rw-r--r--src/engine.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/engine.cpp b/src/engine.cpp
index 047fa332..563247df 100644
--- a/src/engine.cpp
+++ b/src/engine.cpp
@@ -386,13 +386,17 @@ void Engine::draw()
if (being->emotion != 0) {
emotionset->spriteset[being->emotion - 1]->draw(screen,
- sx * 32 - 5 + get_x_offset(being) - offset_x,
- sy * 32 - 45 + get_y_offset(being) - offset_y);
+ sx * 32 + 5 + get_x_offset(being) - offset_x,
+ sy * 32 - 65 + get_y_offset(being) - offset_y);
being->emotion_time--;
if (being->emotion_time == 0) {
being->emotion = 0;
}
}
+
+ graphics->drawText(being->name,
+ being->text_x + 15, being->text_y + 30,
+ gcn::Graphics::CENTER);
}
else if (being->job == 45) { // Draw a warp
} else { // Draw a monster