summaryrefslogtreecommitdiff
path: root/src/net/npchandler.cpp
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-08-10 17:45:15 +0000
committerGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-08-10 17:45:15 +0000
commit81219329d4090dd2b1e3c37ae005f3c7795f4d08 (patch)
treed8e96d296112189cd5bbf46db4a6c483eb027cf6 /src/net/npchandler.cpp
parent5f685256ba8786b133b14f8702c7e71e0d9d4bcd (diff)
downloadmana-client-81219329d4090dd2b1e3c37ae005f3c7795f4d08.tar.gz
mana-client-81219329d4090dd2b1e3c37ae005f3c7795f4d08.tar.bz2
mana-client-81219329d4090dd2b1e3c37ae005f3c7795f4d08.tar.xz
mana-client-81219329d4090dd2b1e3c37ae005f3c7795f4d08.zip
Removed colon in NPC choice messages.
Diffstat (limited to 'src/net/npchandler.cpp')
-rw-r--r--src/net/npchandler.cpp9
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;