From bb9810d704a2f81da41e99cd9a1b03593dbe3a1c Mon Sep 17 00:00:00 2001 From: Eugenio Favalli Date: Sun, 10 Apr 2005 20:59:34 +0000 Subject: Adding player names and fixing emoticon position --- src/engine.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/engine.cpp') 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 -- cgit v1.2.3-70-g09d2