diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-01-05 16:28:32 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-01-05 16:36:42 +0300 |
commit | 0dd90f408098f531c9fe03c65cd66f04c99ecbbf (patch) | |
tree | ddb76a27546abc4df0df9467e4ea09e73b6a88a3 /src/net/eathena/charserverhandler.cpp | |
parent | 40e905745ed720ffa268aa611bb176db89937346 (diff) | |
download | manaplus-0dd90f408098f531c9fe03c65cd66f04c99ecbbf.tar.gz manaplus-0dd90f408098f531c9fe03c65cd66f04c99ecbbf.tar.bz2 manaplus-0dd90f408098f531c9fe03c65cd66f04c99ecbbf.tar.xz manaplus-0dd90f408098f531c9fe03c65cd66f04c99ecbbf.zip |
eathena: set gender in char creation dialog.
Diffstat (limited to 'src/net/eathena/charserverhandler.cpp')
-rw-r--r-- | src/net/eathena/charserverhandler.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/net/eathena/charserverhandler.cpp b/src/net/eathena/charserverhandler.cpp index 12440ebb3..4eb4725e0 100644 --- a/src/net/eathena/charserverhandler.cpp +++ b/src/net/eathena/charserverhandler.cpp @@ -283,6 +283,15 @@ void CharServerHandler::newCharacter(const std::string &name, const int slot, outMsg.writeInt16(static_cast<int16_t>(hairstyle), "hair style"); if (serverFeatures->haveRaceSelection()) outMsg.writeInt16(static_cast<int16_t>(race), "race"); + if (serverFeatures->haveCreateCharGender()) + { + int sex = 0; + if (gender == Gender::UNSPECIFIED) + sex = 99; + else + sex = Being::genderToInt(gender); + outMsg.writeInt8(sex, "gender"); + } } void CharServerHandler::deleteCharacter(Net::Character *const character, |