summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena')
-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,