summaryrefslogtreecommitdiff
path: root/src/net/ea
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-06 20:15:51 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-06 20:15:51 +0300
commitd35d90b66e51679c6aabab6ef69217456d9c4f8b (patch)
tree3b9cdfc94ecc3146f4dfea345ec5b188252e1a4a /src/net/ea
parentdf15a278790cd17f626c1aab036608f6ed678471 (diff)
downloadplus-d35d90b66e51679c6aabab6ef69217456d9c4f8b.tar.gz
plus-d35d90b66e51679c6aabab6ef69217456d9c4f8b.tar.bz2
plus-d35d90b66e51679c6aabab6ef69217456d9c4f8b.tar.xz
plus-d35d90b66e51679c6aabab6ef69217456d9c4f8b.zip
Move processGuildPositionInfo from ea namespace into eathena and tmwa.
Diffstat (limited to 'src/net/ea')
-rw-r--r--src/net/ea/guildhandler.cpp37
-rw-r--r--src/net/ea/guildhandler.h2
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;