From e07e2a6db902f2ce0095b65708a98fa4dbf40aa0 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Tue, 3 Nov 2009 12:06:48 -0700 Subject: Simplify ManaServ netcode some more --- src/net/manaserv/specialhandler.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/net/manaserv/specialhandler.cpp') diff --git a/src/net/manaserv/specialhandler.cpp b/src/net/manaserv/specialhandler.cpp index 2e152d60..17d26d07 100644 --- a/src/net/manaserv/specialhandler.cpp +++ b/src/net/manaserv/specialhandler.cpp @@ -21,8 +21,6 @@ #include "net/manaserv/specialhandler.h" -#include "net/manaserv/gameserver/internal.h" - #include "net/manaserv/connection.h" #include "net/manaserv/messagein.h" #include "net/manaserv/messageout.h" @@ -32,6 +30,8 @@ Net::SpecialHandler *specialHandler; namespace ManaServ { +extern Connection *gameServerConnection; + SpecialHandler::SpecialHandler() { specialHandler = this; @@ -46,7 +46,7 @@ void SpecialHandler::use(int id) { MessageOut msg(PGMSG_USE_SPECIAL); msg.writeInt8(id); - GameServer::connection->send(msg); + gameServerConnection->send(msg); } void SpecialHandler::use(int id, int level, int beingId) -- cgit v1.2.3-60-g2f50