summaryrefslogtreecommitdiff
path: root/src/net/ea/npchandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/ea/npchandler.cpp')
-rw-r--r--src/net/ea/npchandler.cpp11
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();