From 8519fc5cb5d95e1ed753912aaa70a8f041c31abc Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Fri, 27 Mar 2009 06:30:42 -0600 Subject: Fix some problems with NPC dialogs NPCListDialog couldn't be opened because of infinite recursion, and it and NPCTextDialog both had resize bugs. --- src/net/ea/npchandler.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/net/ea') 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; -- cgit v1.2.3-70-g09d2