From 6ef22b50f3d0c2410af5bd2543bedc0b3d692f83 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Wed, 1 Apr 2009 11:46:56 -0600 Subject: Some cleanup --- src/beingmanager.cpp | 5 +---- src/channel.cpp | 3 --- src/gui/popupmenu.cpp | 8 +------- src/gui/widgets/channeltab.cpp | 3 +-- 4 files changed, 3 insertions(+), 16 deletions(-) diff --git a/src/beingmanager.cpp b/src/beingmanager.cpp index 8c07aaab..b8acb7c2 100644 --- a/src/beingmanager.cpp +++ b/src/beingmanager.cpp @@ -26,10 +26,7 @@ #include "npc.h" #include "player.h" -#ifdef EATHENA_SUPPORT -#include "net/messageout.h" -#include "net/ea/protocol.h" -#else +#ifdef TMWSERV_SUPPORT #include "net/tmwserv/protocol.h" #endif diff --git a/src/channel.cpp b/src/channel.cpp index 3e4646fb..1f9bde2b 100644 --- a/src/channel.cpp +++ b/src/channel.cpp @@ -24,9 +24,6 @@ #ifdef TMWSERV_SUPPORT #include "net/tmwserv/chatserver/chatserver.h" #include "net/tmwserv/gameserver/player.h" -#else -#include "net/messageout.h" -#include "net/ea/protocol.h" #endif Channel::Channel(short id, diff --git a/src/gui/popupmenu.cpp b/src/gui/popupmenu.cpp index 41e266a5..8bb6acbb 100644 --- a/src/gui/popupmenu.cpp +++ b/src/gui/popupmenu.cpp @@ -35,11 +35,6 @@ #include "npc.h" #include "player_relations.h" -#ifdef EATHENA_SUPPORT -#include "net/messageout.h" -#include "net/ea/protocol.h" -#endif - #include "resources/itemdb.h" #include "resources/iteminfo.h" @@ -292,8 +287,7 @@ void PopupMenu::handleLink(const std::string &link) being && being->getType() == Being::PLAYER) { - MessageOut outMsg(CMSG_PARTY_INVITE); - outMsg.writeInt32(being->getId()); + player_node->inviteToParty(dynamic_cast (being)); } #endif diff --git a/src/gui/widgets/channeltab.cpp b/src/gui/widgets/channeltab.cpp index 375ead26..6425293c 100644 --- a/src/gui/widgets/channeltab.cpp +++ b/src/gui/widgets/channeltab.cpp @@ -27,8 +27,7 @@ #include "net/tmwserv/chatserver/chatserver.h" #include "net/tmwserv/gameserver/player.h" #else -#include "net/messageout.h" -#include "net/ea/protocol.h" + #endif ChannelTab::ChannelTab(Channel *channel) : ChatTab(channel->getName()), -- cgit v1.2.3-70-g09d2