summaryrefslogtreecommitdiff
path: root/src/gui/npcdialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-27 23:30:27 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-29 00:18:56 +0300
commit9a93f235386bcb47887a33527478700df77dce94 (patch)
treec2383511fa2c963115dc9cf3926410a044ef5c78 /src/gui/npcdialog.cpp
parentb6fe6fbbedb48f1e60de3e4a33dff1d43c188ed2 (diff)
downloadmv-9a93f235386bcb47887a33527478700df77dce94.tar.gz
mv-9a93f235386bcb47887a33527478700df77dce94.tar.bz2
mv-9a93f235386bcb47887a33527478700df77dce94.tar.xz
mv-9a93f235386bcb47887a33527478700df77dce94.zip
show npc name in npc dialog caption.
Diffstat (limited to 'src/gui/npcdialog.cpp')
-rw-r--r--src/gui/npcdialog.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/npcdialog.cpp b/src/gui/npcdialog.cpp
index bddbbaf46..27a5dbf43 100644
--- a/src/gui/npcdialog.cpp
+++ b/src/gui/npcdialog.cpp
@@ -190,7 +190,10 @@ NpcDialog::NpcDialog(const int npcId) :
{
const Being *const being = actorSpriteManager->findBeing(mNpcId);
if (being)
+ {
showAvatar(NPCDB::getAvatarFor(being->getSubType()));
+ setCaption(being->getName());
+ }
}
config.addListener("logNpcInGui", this);