From 0dd90f408098f531c9fe03c65cd66f04c99ecbbf Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 5 Jan 2015 16:28:32 +0300 Subject: eathena: set gender in char creation dialog. --- src/net/eathena/charserverhandler.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/net') 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(hairstyle), "hair style"); if (serverFeatures->haveRaceSelection()) outMsg.writeInt16(static_cast(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, -- cgit v1.2.3-70-g09d2