summaryrefslogtreecommitdiff
path: root/src/net/manaserv/playerhandler.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-08-10 18:06:20 -0600
committerJared Adams <jaxad0127@gmail.com>2010-08-10 18:10:17 -0600
commitf983b7381a298be8639e007f835d2aad30a768e2 (patch)
tree6d82253211e6bde52507f2de091c002f4a948553 /src/net/manaserv/playerhandler.cpp
parent96187972ff9ac50a2a7fa280abbb21bd3c7f0737 (diff)
downloadmana-f983b7381a298be8639e007f835d2aad30a768e2.tar.gz
mana-f983b7381a298be8639e007f835d2aad30a768e2.tar.bz2
mana-f983b7381a298be8639e007f835d2aad30a768e2.tar.xz
mana-f983b7381a298be8639e007f835d2aad30a768e2.zip
Remove NpcDialog references from netcode
Reviewed-by: Chuck Miller
Diffstat (limited to 'src/net/manaserv/playerhandler.cpp')
-rw-r--r--src/net/manaserv/playerhandler.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/net/manaserv/playerhandler.cpp b/src/net/manaserv/playerhandler.cpp
index 696ec037..2028afd9 100644
--- a/src/net/manaserv/playerhandler.cpp
+++ b/src/net/manaserv/playerhandler.cpp
@@ -24,6 +24,7 @@
#include "client.h"
#include "effectmanager.h"
+#include "eventmanager.h"
#include "game.h"
#include "localplayer.h"
#include "log.h"
@@ -41,7 +42,6 @@
#include "net/manaserv/defines.h"
#include "net/manaserv/messagein.h"
#include "net/manaserv/messageout.h"
-#include "net/manaserv/npchandler.h"
#include "net/manaserv/protocol.h"
/**
@@ -60,9 +60,7 @@ void RespawnRequestListener::action(const gcn::ActionEvent &event)
{
Net::getPlayerHandler()->respawn();
- ManaServ::NpcHandler *handler =
- static_cast<ManaServ::NpcHandler*>(Net::getNpcHandler());
- handler->clearDialogs();
+ Mana::EventManager::trigger("NPC", Mana::Event("CloseAll"));
}
extern Connection *gameServerConnection;