summaryrefslogtreecommitdiff
path: root/src/net/eathena/gamerecv.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-01 02:53:35 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-01 02:53:35 +0300
commitd5b524c02308c1db5c5ebba96fa9abf8db0da2de (patch)
tree7bdfb9ac32ed35bb1c7818f6455df32bb372acb4 /src/net/eathena/gamerecv.cpp
parentc14fb368c606d0ca4e0c73fb845b38e2dc84c958 (diff)
downloadmv-d5b524c02308c1db5c5ebba96fa9abf8db0da2de.tar.gz
mv-d5b524c02308c1db5c5ebba96fa9abf8db0da2de.tar.bz2
mv-d5b524c02308c1db5c5ebba96fa9abf8db0da2de.tar.xz
mv-d5b524c02308c1db5c5ebba96fa9abf8db0da2de.zip
Add packet SMSG_MAP_LOGIN_SUCCESS 0x02eb.
Diffstat (limited to 'src/net/eathena/gamerecv.cpp')
-rw-r--r--src/net/eathena/gamerecv.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/net/eathena/gamerecv.cpp b/src/net/eathena/gamerecv.cpp
index 41704deaa..6fdb7389a 100644
--- a/src/net/eathena/gamerecv.cpp
+++ b/src/net/eathena/gamerecv.cpp
@@ -55,8 +55,10 @@ void GameRecv::processMapLogin(Net::MessageIn &msg)
logger->log("Protocol: Player start position: "
"(%d, %d), Direction: %d",
x, y, direction);
- msg.readInt16("font");
- msg.readUInt8("sex");
+ if (msg.getVersion() >= 20080102)
+ msg.readInt16("font");
+ if (msg.getVersion() >= 20141022)
+ msg.readUInt8("sex");
mLastHost &= 0xffffff;