diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-08-10 17:45:15 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-08-10 17:45:15 +0000 |
commit | 81219329d4090dd2b1e3c37ae005f3c7795f4d08 (patch) | |
tree | d8e96d296112189cd5bbf46db4a6c483eb027cf6 /src/net | |
parent | 5f685256ba8786b133b14f8702c7e71e0d9d4bcd (diff) | |
download | mana-81219329d4090dd2b1e3c37ae005f3c7795f4d08.tar.gz mana-81219329d4090dd2b1e3c37ae005f3c7795f4d08.tar.bz2 mana-81219329d4090dd2b1e3c37ae005f3c7795f4d08.tar.xz mana-81219329d4090dd2b1e3c37ae005f3c7795f4d08.zip |
Removed colon in NPC choice messages.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/npchandler.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/net/npchandler.cpp b/src/net/npchandler.cpp index 888a3a29..9cc93df1 100644 --- a/src/net/npchandler.cpp +++ b/src/net/npchandler.cpp @@ -54,17 +54,20 @@ void NPCHandler::handleMessage(MessageIn &msg) } current_npc = static_cast< NPC * >(being); - std::string text = msg.readString(msg.getUnreadLength()); switch (msg.getId()) { case GPMSG_NPC_CHOICE: - npcListDialog->parseItems(text); + npcListDialog->reset(); + while (msg.getUnreadLength()) + { + npcListDialog->addItem(msg.readString()); + } npcListDialog->setVisible(true); break; case GPMSG_NPC_MESSAGE: - npcTextDialog->addText(text); + npcTextDialog->addText(msg.readString(msg.getUnreadLength())); npcListDialog->setVisible(false); npcTextDialog->setVisible(true); break; |