diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-01-24 19:43:26 +0100 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-01-24 14:55:38 -0700 |
commit | 581206ab0fecbb3afc7afebedac541be51097cf5 (patch) | |
tree | 9734beffe9a54f02abe3457bb4c546a0bb878036 /src/npc.cpp | |
parent | c4fd3e6090fb94a77055f4556d906e60e3803d22 (diff) | |
download | mana-581206ab0fecbb3afc7afebedac541be51097cf5.tar.gz mana-581206ab0fecbb3afc7afebedac541be51097cf5.tar.bz2 mana-581206ab0fecbb3afc7afebedac541be51097cf5.tar.xz mana-581206ab0fecbb3afc7afebedac541be51097cf5.zip |
Use standard GUI font also for speech and names
The speech bitmap font can't handle unicode, so it has now been replaced
by the standard GUI font, drawn with a shadow for chat and with a full
outline for names.
Diffstat (limited to 'src/npc.cpp')
-rw-r--r-- | src/npc.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/npc.cpp b/src/npc.cpp index d8bd5468..27388880 100644 --- a/src/npc.cpp +++ b/src/npc.cpp @@ -31,8 +31,6 @@ #include "resources/npcdb.h" -#include "gui/gui.h" - NPC *current_npc = 0; static const int NAME_X_OFFSET = 15; @@ -89,8 +87,7 @@ void NPC::setName(const std::string &name) std::string displayName = name.substr(0, name.find('#', 0)); mName = new Text(displayName, mPx + NAME_X_OFFSET, mPy + NAME_Y_OFFSET, - gcn::Graphics::CENTER, npcNameFont, - gcn::Color(200, 200, 255)); + gcn::Graphics::CENTER, gcn::Color(200, 200, 255)); Being::setName(displayName + " (NPC)"); } |