summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-05 16:28:32 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-05 16:36:42 +0300
commit0dd90f408098f531c9fe03c65cd66f04c99ecbbf (patch)
treeddb76a27546abc4df0df9467e4ea09e73b6a88a3 /src
parent40e905745ed720ffa268aa611bb176db89937346 (diff)
downloadplus-0dd90f408098f531c9fe03c65cd66f04c99ecbbf.tar.gz
plus-0dd90f408098f531c9fe03c65cd66f04c99ecbbf.tar.bz2
plus-0dd90f408098f531c9fe03c65cd66f04c99ecbbf.tar.xz
plus-0dd90f408098f531c9fe03c65cd66f04c99ecbbf.zip
eathena: set gender in char creation dialog.
Diffstat (limited to 'src')
-rw-r--r--src/net/eathena/charserverhandler.cpp9
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,