diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-01-15 19:57:48 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-01-15 19:57:48 +0300 |
commit | 605205eaba29773d9b6c67d5920bf6964366f37e (patch) | |
tree | 0d79200312182181851a240f6a802ec0138a7f11 | |
parent | 785cec74c47ffa784a08b7e722fc1aab7a17bd69 (diff) | |
download | ManaVerse-605205eaba29773d9b6c67d5920bf6964366f37e.tar.gz ManaVerse-605205eaba29773d9b6c67d5920bf6964366f37e.tar.bz2 ManaVerse-605205eaba29773d9b6c67d5920bf6964366f37e.tar.xz ManaVerse-605205eaba29773d9b6c67d5920bf6964366f37e.zip |
eathena: add support for setting player look in char creation.
-rw-r--r-- | src/net/eathena/charserverhandler.cpp | 2 | ||||
-rw-r--r-- | src/net/eathena/serverfeatures.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/net/eathena/charserverhandler.cpp b/src/net/eathena/charserverhandler.cpp index 0b0af5033..d629be708 100644 --- a/src/net/eathena/charserverhandler.cpp +++ b/src/net/eathena/charserverhandler.cpp @@ -294,6 +294,8 @@ void CharServerHandler::newCharacter(const std::string &name, const int slot, sex = Being::genderToInt(gender); outMsg.writeInt8(sex, "gender"); } + if (serverFeatures->haveLookSelection()) + outMsg.writeInt16(static_cast<int16_t>(look), "look"); } void CharServerHandler::deleteCharacter(Net::Character *const character, diff --git a/src/net/eathena/serverfeatures.cpp b/src/net/eathena/serverfeatures.cpp index 956c134e3..0e684b00a 100644 --- a/src/net/eathena/serverfeatures.cpp +++ b/src/net/eathena/serverfeatures.cpp @@ -92,7 +92,7 @@ bool ServerFeatures::haveRaceSelection() const bool ServerFeatures::haveLookSelection() const { - return false; + return serverVersion >= 4; } bool ServerFeatures::haveSpecialChatChannels() const |