summaryrefslogtreecommitdiff
path: root/src/net/npchandler.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2008-10-28 23:14:56 +0000
committerIra Rice <irarice@gmail.com>2008-10-28 23:14:56 +0000
commitbf986b19a872b472d8593d14bb6f1d3bc6721e8d (patch)
tree6bc3e37e9667e7e1a9ed83c3f09c683912b4893f /src/net/npchandler.cpp
parentbd15dca49554b66c2921f99bbc0a5e5494019898 (diff)
downloadmana-client-bf986b19a872b472d8593d14bb6f1d3bc6721e8d.tar.gz
mana-client-bf986b19a872b472d8593d14bb6f1d3bc6721e8d.tar.bz2
mana-client-bf986b19a872b472d8593d14bb6f1d3bc6721e8d.tar.xz
mana-client-bf986b19a872b472d8593d14bb6f1d3bc6721e8d.zip
Added support for no dialogue NPC's. Patch by Peavey from TMW.
Diffstat (limited to 'src/net/npchandler.cpp')
-rw-r--r--src/net/npchandler.cpp10
1 files changed, 8 insertions, 2 deletions
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<NPC*>(beingManager->findBeing(id));
+ if (current_npc == dynamic_cast<NPC*>(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;
}
}