diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-08-12 01:53:54 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-08-12 01:53:54 +0300 |
commit | fca4273667f15afba055d3c296094f2f41c7ae91 (patch) | |
tree | d2a24602a4a60814a5927384570d2873bed83225 /src/gui/beingpopup.cpp | |
parent | 44e80c70513022b6c378f64d6bf5d25dda7b0e7f (diff) | |
download | manaverse-fca4273667f15afba055d3c296094f2f41c7ae91.tar.gz manaverse-fca4273667f15afba055d3c296094f2f41c7ae91.tar.bz2 manaverse-fca4273667f15afba055d3c296094f2f41c7ae91.tar.xz manaverse-fca4273667f15afba055d3c296094f2f41c7ae91.zip |
Add ability to add comments to npcs.
Diffstat (limited to 'src/gui/beingpopup.cpp')
-rw-r--r-- | src/gui/beingpopup.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/beingpopup.cpp b/src/gui/beingpopup.cpp index e5dc602a0..8d7b26c1b 100644 --- a/src/gui/beingpopup.cpp +++ b/src/gui/beingpopup.cpp @@ -89,6 +89,12 @@ void BeingPopup::show(int x, int y, Being *b) b->updateComment(); + if (b->getType() == Being::NPC && b->getComment().empty()) + { + setVisible(false); + return; + } + mBeingName->setCaption(b->getName() + b->getGenderSignWithSpace()); if (gui) { |