diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-05-02 22:05:37 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-05-02 22:05:37 -0600 |
commit | d592883f61eef2abb7829a6b624d2c85fe54dd5e (patch) | |
tree | f5ee4e94f8d57f251e5389a17538573f441aae98 /src/net/ea/npchandler.cpp | |
parent | 8a3a417e3a3c083414d35de0f0dad91edde09276 (diff) | |
download | mana-d592883f61eef2abb7829a6b624d2c85fe54dd5e.tar.gz mana-d592883f61eef2abb7829a6b624d2c85fe54dd5e.tar.bz2 mana-d592883f61eef2abb7829a6b624d2c85fe54dd5e.tar.xz mana-d592883f61eef2abb7829a6b624d2c85fe54dd5e.zip |
Fix up some things in the NPC dialog
Diffstat (limited to 'src/net/ea/npchandler.cpp')
-rw-r--r-- | src/net/ea/npchandler.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/net/ea/npchandler.cpp b/src/net/ea/npchandler.cpp index abdac169..c53dfae1 100644 --- a/src/net/ea/npchandler.cpp +++ b/src/net/ea/npchandler.cpp @@ -87,20 +87,19 @@ void NpcHandler::handleMessage(MessageIn &msg) npcDialog->showCloseButton(); // Otherwise, move on as an empty dialog doesn't help else - npcDialog->closeDialog(); + closeDialog(id); break; - /* Note: with the new dialog, we automaticilly assume "Next" case SMSG_NPC_NEXT: id = msg.readInt32(); // If we're talking to that NPC, show the next button - if (id == current_npc && dialog) - dialog->showNextButton(); + if (id == current_npc) + npcDialog->showNextButton(); // Otherwise, move on as an empty dialog doesn't help - else if (dialog) + else nextDialog(id); break; - */ + case SMSG_NPC_INT_INPUT: // Request for an integer current_npc = msg.readInt32(); |