diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-09-17 17:05:37 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-09-17 17:05:37 +0300 |
commit | 09bac4d98ec5d5c3a5603526e4dea5816a86c1e6 (patch) | |
tree | 4afd6f5e66af92f2b66211cf322079159e9a7d96 /src/net/eathena/guildhandler.cpp | |
parent | f3db3708b082a885d39c38c42221f37b9c0e0d9d (diff) | |
download | mv-09bac4d98ec5d5c3a5603526e4dea5816a86c1e6.tar.gz mv-09bac4d98ec5d5c3a5603526e4dea5816a86c1e6.tar.bz2 mv-09bac4d98ec5d5c3a5603526e4dea5816a86c1e6.tar.xz mv-09bac4d98ec5d5c3a5603526e4dea5816a86c1e6.zip |
Remove ea/guildhandler and ea/guildrecv. Because guilds not works in legacy server anymore.
Diffstat (limited to 'src/net/eathena/guildhandler.cpp')
-rw-r--r-- | src/net/eathena/guildhandler.cpp | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/src/net/eathena/guildhandler.cpp b/src/net/eathena/guildhandler.cpp index 42c0bd951..56a661da1 100644 --- a/src/net/eathena/guildhandler.cpp +++ b/src/net/eathena/guildhandler.cpp @@ -26,13 +26,18 @@ #include "being/localplayer.h" #include "being/playerinfo.h" -#include "net/ea/guildrecv.h" +#include "gui/widgets/tabs/chat/guildtab.h" +#include "net/eathena/guildrecv.h" #include "net/eathena/messageout.h" #include "net/eathena/protocolout.h" +#include "utils/delete2.h" + #include "debug.h" +GuildTab *guildTab = nullptr; + extern Net::GuildHandler *guildHandler; extern int packetVersion; @@ -40,13 +45,25 @@ namespace EAthena { GuildHandler::GuildHandler() : - Ea::GuildHandler() + Net::GuildHandler() { guildHandler = this; + GuildRecv::showBasicInfo = false; } GuildHandler::~GuildHandler() { + delete2(guildTab); +} + +void GuildHandler::clear() const +{ + taGuild = nullptr; +} + +ChatTab *GuildHandler::getTab() const +{ + return guildTab; } void GuildHandler::create(const std::string &name) const @@ -164,7 +181,7 @@ void GuildHandler::info() const // 3 = skill info // 4 = expulsion list - Ea::GuildRecv::showBasicInfo = true; + GuildRecv::showBasicInfo = true; createOutPacket(CMSG_GUILD_REQUEST_INFO); outMsg.writeInt32(0, "action"); // Request basic info } |