From d592883f61eef2abb7829a6b624d2c85fe54dd5e Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Sat, 2 May 2009 22:05:37 -0600 Subject: Fix up some things in the NPC dialog --- src/net/ea/npchandler.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/net/ea') 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(); -- cgit v1.2.3-70-g09d2