summaryrefslogtreecommitdiff
path: root/src/net/ea/guildhandler.cpp
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/guildhandler.cpp
parentdf15a278790cd17f626c1aab036608f6ed678471 (diff)
downloadmv-d35d90b66e51679c6aabab6ef69217456d9c4f8b.tar.gz
mv-d35d90b66e51679c6aabab6ef69217456d9c4f8b.tar.bz2
mv-d35d90b66e51679c6aabab6ef69217456d9c4f8b.tar.xz
mv-d35d90b66e51679c6aabab6ef69217456d9c4f8b.zip
Move processGuildPositionInfo from ea namespace into eathena and tmwa.
Diffstat (limited to 'src/net/ea/guildhandler.cpp')
-rw-r--r--src/net/ea/guildhandler.cpp37
1 files changed, 0 insertions, 37 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