From f983b7381a298be8639e007f835d2aad30a768e2 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Tue, 10 Aug 2010 18:06:20 -0600 Subject: Remove NpcDialog references from netcode Reviewed-by: Chuck Miller --- src/net/manaserv/playerhandler.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/net/manaserv/playerhandler.cpp') 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(Net::getNpcHandler()); - handler->clearDialogs(); + Mana::EventManager::trigger("NPC", Mana::Event("CloseAll")); } extern Connection *gameServerConnection; -- cgit v1.2.3-70-g09d2