diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-07-18 18:40:59 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-07-18 18:40:59 +0300 |
commit | 31cce4c22b369148f77d7092903af9462d8151c8 (patch) | |
tree | bd11e598db5ff6e17d3f0b283c44e333ac37d696 /src/net/tmwa | |
parent | e6afa441a57718205c1f62bcbc0a5443fd513aa3 (diff) | |
download | manaplus-31cce4c22b369148f77d7092903af9462d8151c8.tar.gz manaplus-31cce4c22b369148f77d7092903af9462d8151c8.tar.bz2 manaplus-31cce4c22b369148f77d7092903af9462d8151c8.tar.xz manaplus-31cce4c22b369148f77d7092903af9462d8151c8.zip |
Fix code style.
Diffstat (limited to 'src/net/tmwa')
-rw-r--r-- | src/net/tmwa/charserverhandler.cpp | 2 | ||||
-rw-r--r-- | src/net/tmwa/generalhandler.cpp | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/net/tmwa/charserverhandler.cpp b/src/net/tmwa/charserverhandler.cpp index 67fff4029..c01ec4666 100644 --- a/src/net/tmwa/charserverhandler.cpp +++ b/src/net/tmwa/charserverhandler.cpp @@ -178,7 +178,7 @@ void CharServerHandler::readPlayerData(Net::MessageIn &msg, const int hat = msg.readInt16(); // head option top const int topClothes = msg.readInt16(); - uint8_t hairColor = msg.readUInt8(); + const uint8_t hairColor = msg.readUInt8(); msg.readUInt8(); // free tempPlayer->setSprite(SPRITE_HAIR, hairStyle * -1, ItemDB::get(-hairStyle).getDyeColorsString(hairColor)); diff --git a/src/net/tmwa/generalhandler.cpp b/src/net/tmwa/generalhandler.cpp index 7ef237bbc..a31f6d1dc 100644 --- a/src/net/tmwa/generalhandler.cpp +++ b/src/net/tmwa/generalhandler.cpp @@ -133,7 +133,8 @@ void GeneralHandler::handleMessage(Net::MessageIn &msg) case SMSG_CONNECTION_PROBLEM: { const uint8_t code = msg.readUInt8(); - logger->log("Connection problem: %u", static_cast<int>(code)); + logger->log("Connection problem: %u", + static_cast<unsigned int>(code)); switch (code) { |