summaryrefslogtreecommitdiff
path: root/src/net/eathena/charserverhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-16 22:30:31 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-16 22:33:13 +0300
commitf9ba5f70016e5422eb20f0ad3c0e61ca66e448c8 (patch)
treeb8bdc4d2da97ff76987313f22ad63eb3c8df4058 /src/net/eathena/charserverhandler.cpp
parent1781049dee0da16fdd7148f36a699523cd08ecaf (diff)
downloadmv-f9ba5f70016e5422eb20f0ad3c0e61ca66e448c8.tar.gz
mv-f9ba5f70016e5422eb20f0ad3c0e61ca66e448c8.tar.bz2
mv-f9ba5f70016e5422eb20f0ad3c0e61ca66e448c8.tar.xz
mv-f9ba5f70016e5422eb20f0ad3c0e61ca66e448c8.zip
fix code style.
Diffstat (limited to 'src/net/eathena/charserverhandler.cpp')
-rw-r--r--src/net/eathena/charserverhandler.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net/eathena/charserverhandler.cpp b/src/net/eathena/charserverhandler.cpp
index d629be708..21306b659 100644
--- a/src/net/eathena/charserverhandler.cpp
+++ b/src/net/eathena/charserverhandler.cpp
@@ -200,7 +200,7 @@ void CharServerHandler::readPlayerData(Net::MessageIn &msg,
data.mAttributes[Attributes::MAX_MP] = msg.readInt16("max mp/sp");
msg.readInt16("speed");
- const int race = msg.readInt16("class");
+ const uint16_t race = msg.readInt16("class");
// tempPlayer->setSubtype(race, 0);
const int hairStyle = msg.readInt16("hair style");
const int weapon = msg.readInt32("weapon");
@@ -219,7 +219,7 @@ void CharServerHandler::readPlayerData(Net::MessageIn &msg,
ItemDB::get(-hairStyle).getDyeColorsString(
msg.readInt16("hair color")));
- const int look = msg.readInt16("clothes color");
+ const uint8_t look = msg.readInt16("clothes color");
tempPlayer->setSubtype(race, look);
tempPlayer->setName(msg.readString(24, "name"));
@@ -272,8 +272,8 @@ void CharServerHandler::chooseCharacter(Net::Character *const character)
void CharServerHandler::newCharacter(const std::string &name, const int slot,
const Gender::Type gender,
const int hairstyle, const int hairColor,
- const unsigned char race A_UNUSED,
- const unsigned char look A_UNUSED,
+ const unsigned char race,
+ const unsigned char look,
const std::vector<int> &stats A_UNUSED)
const
{