From d5b524c02308c1db5c5ebba96fa9abf8db0da2de Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 1 Apr 2016 02:53:35 +0300 Subject: Add packet SMSG_MAP_LOGIN_SUCCESS 0x02eb. --- src/net/eathena/gamerecv.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/net/eathena/gamerecv.cpp') 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; -- cgit v1.2.3-70-g09d2