From 64309d7a7dc6380d62fa11363073d4243cbfa665 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 18 Jan 2015 14:06:44 +0300 Subject: Convert player look variable format from 8 bit to 16 bit. --- src/net/eathena/charserverhandler.cpp | 4 ++-- src/net/eathena/charserverhandler.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/net/eathena') 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 &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 &stats) const override final; void renameCharacter(const int id, -- cgit v1.2.3-60-g2f50