diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-21 15:55:28 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-21 15:55:28 +0300 |
commit | a74ab85da40aaccf490df59cd3fe5bd448fcc7e4 (patch) | |
tree | d1d89dac66a1dad209f75c05f593f67b419641fe /src/net/eathena | |
parent | f6ff7c2b3f672ae611ec47021a8ea227a33a8ac7 (diff) | |
download | plus-a74ab85da40aaccf490df59cd3fe5bd448fcc7e4.tar.gz plus-a74ab85da40aaccf490df59cd3fe5bd448fcc7e4.tar.bz2 plus-a74ab85da40aaccf490df59cd3fe5bd448fcc7e4.tar.xz plus-a74ab85da40aaccf490df59cd3fe5bd448fcc7e4.zip |
eathena: use per char gender.
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/charserverhandler.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net/eathena/charserverhandler.cpp b/src/net/eathena/charserverhandler.cpp index fde3b0a19..992b4ca79 100644 --- a/src/net/eathena/charserverhandler.cpp +++ b/src/net/eathena/charserverhandler.cpp @@ -247,8 +247,9 @@ void CharServerHandler::readPlayerData(Net::MessageIn &msg, tempPlayer->setSprite(SPRITE_HEAD_MID, misc2); msg.readInt32("slot change"); tempPlayer->setRename(msg.readInt32("rename (inverse)")); - // +++ here need use gender - msg.readUInt8("gender"); + + const uint8_t gender = static_cast<uint8_t>(msg.readUInt8("gender") & 3); + tempPlayer->setGender(Being::intToGender(gender)); } void CharServerHandler::chooseCharacter(Net::Character *const character) |