summaryrefslogtreecommitdiff
path: root/src/net/ea/guildhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-12-18 17:19:28 +0300
committerAndrei Karas <akaras@inbox.ru>2011-12-18 17:19:28 +0300
commit722404ad29f268ef8861c62b038c4e14652c7555 (patch)
treef38d57adaba7bbe103f48bf3fd0b92c99d2c5329 /src/net/ea/guildhandler.cpp
parentba997be747666c74c46c734cb636a8de84c582b3 (diff)
downloadmanaplus-722404ad29f268ef8861c62b038c4e14652c7555.tar.gz
manaplus-722404ad29f268ef8861c62b038c4e14652c7555.tar.bz2
manaplus-722404ad29f268ef8861c62b038c4e14652c7555.tar.xz
manaplus-722404ad29f268ef8861c62b038c4e14652c7555.zip
Ad comments for "unused" data from server packets.
Fix some guild and worlds packets.
Diffstat (limited to 'src/net/ea/guildhandler.cpp')
-rw-r--r--src/net/ea/guildhandler.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/net/ea/guildhandler.cpp b/src/net/ea/guildhandler.cpp
index 907fa13db..49df76f97 100644
--- a/src/net/ea/guildhandler.cpp
+++ b/src/net/ea/guildhandler.cpp
@@ -168,7 +168,7 @@ void GuildHandler::processGuildBasicInfo(Net::MessageIn &msg)
int avgLevel = msg.readInt32(); // Average level
int exp = msg.readInt32(); // Exp
int nextExp = msg.readInt32(); // Next exp
- msg.skip(16); // unused
+ msg.skip(16); // 0 unused
std::string name = msg.readString(24); // Name
std::string master = msg.readString(24); // Master's name
std::string castle = msg.readString(20); // Castles
@@ -242,7 +242,7 @@ void GuildHandler::processGuildMemberList(Net::MessageIn &msg)
int exp = msg.readInt32(); // Exp
int online = msg.readInt32(); // Online
int pos = msg.readInt32(); // Position
- msg.skip(50); // unused
+ msg.skip(50); // 0 unused
std::string name = msg.readString(24); // Name
GuildMember *m = taGuild->addMember(id, charId, name);
@@ -371,11 +371,11 @@ void GuildHandler::processGuildSkillInfo(Net::MessageIn &msg)
{
msg.readInt16(); // ID
msg.readInt16(); // 'Info' (unknown atm)
- msg.readInt16(); // unused
+ msg.readInt16(); // 0 unused
msg.readInt16(); // Level
msg.readInt16(); // SP
msg.readInt16(); // 'Range'
- msg.skip(24); // unused
+ msg.skip(24); // 0 unused
msg.readInt8(); // Can be increased
}
}
@@ -479,9 +479,10 @@ void GuildHandler::processGuildLeave(Net::MessageIn &msg)
void GuildHandler::processGuildExpulsion(Net::MessageIn &msg)
{
+ msg.skip(2); // size (can be many explusions in list)
std::string nick = msg.readString(24); // Name (of expulsed?)
- msg.readString(40); // Message
- msg.skip(24); // unused ("dummy")
+ msg.skip(24); // acc
+ msg.readString(44); // Message
if (taGuild)
taGuild->removeMember(nick);