diff options
Diffstat (limited to 'src/net/ea')
-rw-r--r-- | src/net/ea/guildhandler.cpp | 37 | ||||
-rw-r--r-- | src/net/ea/guildhandler.h | 2 |
2 files changed, 0 insertions, 39 deletions
diff --git a/src/net/ea/guildhandler.cpp b/src/net/ea/guildhandler.cpp index 598811fdd..3e43d6400 100644 --- a/src/net/ea/guildhandler.cpp +++ b/src/net/ea/guildhandler.cpp @@ -105,43 +105,6 @@ void GuildHandler::processGuildCreateResponse(Net::MessageIn &msg) const } } -void GuildHandler::processGuildPositionInfo(Net::MessageIn &msg) const -{ - const int guildId = msg.readInt32(); - const int emblem = msg.readInt32(); - const int posMode = msg.readInt32(); - msg.readInt32(); // Unused - msg.readUInt8(); // Unused - std::string guildName = msg.readString(24); - - Guild *const g = Guild::getGuild(static_cast<int16_t>(guildId)); - if (!g) - return; - - g->setName(guildName); - g->setEmblemId(emblem); - if (!taGuild) - taGuild = g; - if (!guildTab && chatWindow) - { - guildTab = new GuildTab(chatWindow); - if (config.getBoolValue("showChatHistory")) - guildTab->loadFromLogFile("#Guild"); - if (localPlayer) - localPlayer->addGuild(taGuild); - memberList(guildId); - } - - if (localPlayer) - { - localPlayer->setGuild(g); - localPlayer->setGuildName(g->getName()); - } - - logger->log("Guild position info: %d %d %d %s\n", guildId, - emblem, posMode, guildName.c_str()); -} - void GuildHandler::processGuildMemberLogin(Net::MessageIn &msg) const { const int accountId = msg.readInt32(); // Account ID diff --git a/src/net/ea/guildhandler.h b/src/net/ea/guildhandler.h index 48e5f325f..ed5453f7d 100644 --- a/src/net/ea/guildhandler.h +++ b/src/net/ea/guildhandler.h @@ -53,8 +53,6 @@ class GuildHandler notfinal : public Net::GuildHandler virtual void processGuildCreateResponse(Net::MessageIn &msg) const; - virtual void processGuildPositionInfo(Net::MessageIn &msg) const; - virtual void processGuildMemberLogin(Net::MessageIn &msg) const; virtual void processGuildMasterOrMember(Net::MessageIn &msg) const; |