summaryrefslogtreecommitdiff
path: root/src/net/ea/npchandler.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-03-27 06:30:42 -0600
committerJared Adams <jaxad0127@gmail.com>2009-03-27 06:31:58 -0600
commit8519fc5cb5d95e1ed753912aaa70a8f041c31abc (patch)
tree04bf754b940f8ee4083042b8de2789ddd830de9e /src/net/ea/npchandler.cpp
parentdd05447445dc1766e532130318af2cb6bb72a994 (diff)
downloadmana-client-8519fc5cb5d95e1ed753912aaa70a8f041c31abc.tar.gz
mana-client-8519fc5cb5d95e1ed753912aaa70a8f041c31abc.tar.bz2
mana-client-8519fc5cb5d95e1ed753912aaa70a8f041c31abc.tar.xz
mana-client-8519fc5cb5d95e1ed753912aaa70a8f041c31abc.zip
Fix some problems with NPC dialogs
NPCListDialog couldn't be opened because of infinite recursion, and it and NPCTextDialog both had resize bugs.
Diffstat (limited to 'src/net/ea/npchandler.cpp')
-rw-r--r--src/net/ea/npchandler.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/net/ea/npchandler.cpp b/src/net/ea/npchandler.cpp
index 165cc2d3..0e0bc53d 100644
--- a/src/net/ea/npchandler.cpp
+++ b/src/net/ea/npchandler.cpp
@@ -61,6 +61,7 @@ void NPCHandler::handleMessage(MessageIn &msg)
current_npc = msg.readInt32();
player_node->setAction(LocalPlayer::STAND);
npcListDialog->parseItems(msg.readString(msg.getLength() - 8));
+ npcListDialog->setVisible(true);
npcListDialog->requestFocus();
break;
@@ -69,6 +70,7 @@ void NPCHandler::handleMessage(MessageIn &msg)
current_npc = msg.readInt32();
player_node->setAction(LocalPlayer::STAND);
npcTextDialog->addText(msg.readString(msg.getLength() - 8));
+ npcTextDialog->setVisible(true);
npcTextDialog->requestFocus();
break;