summaryrefslogtreecommitdiff
path: root/src/engine.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <bertram@cegetel.net>2006-02-05 21:28:38 +0000
committerYohann Ferreira <bertram@cegetel.net>2006-02-05 21:28:38 +0000
commit5e1658aade25018073cc432fbc55c7857441039b (patch)
tree855ab86c0c1a02dd3750751f4b8f0db3dbe71010 /src/engine.cpp
parentbb16416fdc756e1952bc975be4a2fee6c584c38f (diff)
downloadmana-client-5e1658aade25018073cc432fbc55c7857441039b.tar.gz
mana-client-5e1658aade25018073cc432fbc55c7857441039b.tar.bz2
mana-client-5e1658aade25018073cc432fbc55c7857441039b.tar.xz
mana-client-5e1658aade25018073cc432fbc55c7857441039b.zip
Made the nickname and emotions displayed above every layers. Made the delete and ok buttons be disabled once the character is selected at login.
Diffstat (limited to 'src/engine.cpp')
-rw-r--r--src/engine.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/engine.cpp b/src/engine.cpp
index dc767eb6..881a570a 100644
--- a/src/engine.cpp
+++ b/src/engine.cpp
@@ -250,11 +250,13 @@ void Engine::draw(Graphics *graphics)
}
}
- // Draw player speech
+ // Draw player nickname, speech, and emotion sprite as needed
Beings *beings = beingManager->getAll();
for (Beings::iterator i = beings->begin(); i != beings->end(); i++)
{
(*i)->drawSpeech(graphics, -map_x, -map_y);
+(*i)->drawName(graphics, -map_x, -map_y);
+(*i)->drawEmotion(graphics, -map_x, -map_y);
}
// Draw target marker if needed