summaryrefslogtreecommitdiff
path: root/src/net/manaserv/playerhandler.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-04-26 21:56:31 -0600
committerJared Adams <jaxad0127@gmail.com>2010-05-04 08:19:09 -0600
commit375ceb6c78f79e0144c2d63e0f9cda170288da8b (patch)
tree525f30b77566fdcdeb819a79269c375cccfc2cb9 /src/net/manaserv/playerhandler.cpp
parent22a7ac0b9ed82d09460d791016a990b327b61fc4 (diff)
downloadmana-375ceb6c78f79e0144c2d63e0f9cda170288da8b.tar.gz
mana-375ceb6c78f79e0144c2d63e0f9cda170288da8b.tar.bz2
mana-375ceb6c78f79e0144c2d63e0f9cda170288da8b.tar.xz
mana-375ceb6c78f79e0144c2d63e0f9cda170288da8b.zip
Clear NPC dialogs when the player dies
Reviewed-by: Freeyorp
Diffstat (limited to 'src/net/manaserv/playerhandler.cpp')
-rw-r--r--src/net/manaserv/playerhandler.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/net/manaserv/playerhandler.cpp b/src/net/manaserv/playerhandler.cpp
index 3a5d68a2..f6207800 100644
--- a/src/net/manaserv/playerhandler.cpp
+++ b/src/net/manaserv/playerhandler.cpp
@@ -40,6 +40,7 @@
#include "net/manaserv/connection.h"
#include "net/manaserv/messagein.h"
#include "net/manaserv/messageout.h"
+#include "net/manaserv/npchandler.h"
#include "net/manaserv/protocol.h"
/**
@@ -57,6 +58,10 @@ namespace ManaServ {
void RespawnRequestListener::action(const gcn::ActionEvent &event)
{
Net::getPlayerHandler()->respawn();
+
+ ManaServ::NpcHandler *handler =
+ static_cast<ManaServ::NpcHandler*>(Net::getNpcHandler());
+ handler->clearDialogs();
}
extern Connection *gameServerConnection;