From bf986b19a872b472d8593d14bb6f1d3bc6721e8d Mon Sep 17 00:00:00 2001 From: Ira Rice Date: Tue, 28 Oct 2008 23:14:56 +0000 Subject: Added support for no dialogue NPC's. Patch by Peavey from TMW. --- src/net/npchandler.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/net') diff --git a/src/net/npchandler.cpp b/src/net/npchandler.cpp index 29855fc0..811372fa 100644 --- a/src/net/npchandler.cpp +++ b/src/net/npchandler.cpp @@ -70,9 +70,15 @@ void NPCHandler::handleMessage(MessageIn *msg) npcTextDialog->setVisible(true); break; + case SMSG_NPC_CLOSE: + id = msg->readInt32(); + dynamic_cast(beingManager->findBeing(id)); + if (current_npc == dynamic_cast(beingManager->findBeing(id))) + current_npc = NULL; + break; + case SMSG_NPC_NEXT: - case SMSG_NPC_CLOSE: - // Next/Close button in NPC dialog, currently unused + // Next button in NPC dialog, currently unused break; } } -- cgit v1.2.3-70-g09d2