summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-21 15:55:28 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-21 15:55:28 +0300
commita74ab85da40aaccf490df59cd3fe5bd448fcc7e4 (patch)
treed1d89dac66a1dad209f75c05f593f67b419641fe /src/net
parentf6ff7c2b3f672ae611ec47021a8ea227a33a8ac7 (diff)
downloadmv-a74ab85da40aaccf490df59cd3fe5bd448fcc7e4.tar.gz
mv-a74ab85da40aaccf490df59cd3fe5bd448fcc7e4.tar.bz2
mv-a74ab85da40aaccf490df59cd3fe5bd448fcc7e4.tar.xz
mv-a74ab85da40aaccf490df59cd3fe5bd448fcc7e4.zip
eathena: use per char gender.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/eathena/charserverhandler.cpp5
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)