diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-01-18 14:06:44 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-01-18 14:06:44 +0300 |
commit | 64309d7a7dc6380d62fa11363073d4243cbfa665 (patch) | |
tree | e9ac37f294e2a612391be6afa199b689e90defe8 /src/net/eathena | |
parent | bc22bc4da27d80627fa966660670219b3652e9ec (diff) | |
download | manaplus-64309d7a7dc6380d62fa11363073d4243cbfa665.tar.gz manaplus-64309d7a7dc6380d62fa11363073d4243cbfa665.tar.bz2 manaplus-64309d7a7dc6380d62fa11363073d4243cbfa665.tar.xz manaplus-64309d7a7dc6380d62fa11363073d4243cbfa665.zip |
Convert player look variable format from 8 bit to 16 bit.
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/charserverhandler.cpp | 4 | ||||
-rw-r--r-- | src/net/eathena/charserverhandler.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/net/eathena/charserverhandler.cpp b/src/net/eathena/charserverhandler.cpp index 21306b659..8decf9eef 100644 --- a/src/net/eathena/charserverhandler.cpp +++ b/src/net/eathena/charserverhandler.cpp @@ -219,7 +219,7 @@ void CharServerHandler::readPlayerData(Net::MessageIn &msg, ItemDB::get(-hairStyle).getDyeColorsString( msg.readInt16("hair color"))); - const uint8_t look = msg.readInt16("clothes color"); + const uint16_t look = msg.readInt16("clothes color"); tempPlayer->setSubtype(race, look); tempPlayer->setName(msg.readString(24, "name")); @@ -273,7 +273,7 @@ void CharServerHandler::newCharacter(const std::string &name, const int slot, const Gender::Type gender, const int hairstyle, const int hairColor, const unsigned char race, - const unsigned char look, + const uint16_t look, const std::vector<int> &stats A_UNUSED) const { diff --git a/src/net/eathena/charserverhandler.h b/src/net/eathena/charserverhandler.h index a6384cbaa..0b424024a 100644 --- a/src/net/eathena/charserverhandler.h +++ b/src/net/eathena/charserverhandler.h @@ -51,7 +51,7 @@ class CharServerHandler final : public MessageHandler, const int hairstyle, const int hairColor, const unsigned char race, - const unsigned char look, + const uint16_t look, const std::vector<int> &stats) const override final; void renameCharacter(const int id, |