summaryrefslogtreecommitdiff
path: root/src
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
parent1781049dee0da16fdd7148f36a699523cd08ecaf (diff)
downloadplus-f9ba5f70016e5422eb20f0ad3c0e61ca66e448c8.tar.gz
plus-f9ba5f70016e5422eb20f0ad3c0e61ca66e448c8.tar.bz2
plus-f9ba5f70016e5422eb20f0ad3c0e61ca66e448c8.tar.xz
plus-f9ba5f70016e5422eb20f0ad3c0e61ca66e448c8.zip
fix code style.
Diffstat (limited to 'src')
-rw-r--r--src/gui/popups/popupmenu.cpp1
-rw-r--r--src/gui/widgets/tabs/setup_audio.cpp1
-rw-r--r--src/gui/widgets/widget.cpp2
-rw-r--r--src/gui/windows/chatwindow.h1
-rw-r--r--src/net/eathena/beinghandler.cpp2
-rw-r--r--src/net/eathena/charserverhandler.cpp8
6 files changed, 5 insertions, 10 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp
index 349598f26..88e83b200 100644
--- a/src/gui/popups/popupmenu.cpp
+++ b/src/gui/popups/popupmenu.cpp
@@ -24,7 +24,6 @@
#include "actormanager.h"
#include "configuration.h"
-#include "dropshortcut.h"
#include "gamemodifiers.h"
#include "guild.h"
#include "guildmanager.h"
diff --git a/src/gui/widgets/tabs/setup_audio.cpp b/src/gui/widgets/tabs/setup_audio.cpp
index 20c619542..cf278b76e 100644
--- a/src/gui/widgets/tabs/setup_audio.cpp
+++ b/src/gui/widgets/tabs/setup_audio.cpp
@@ -38,7 +38,6 @@
#include "gui/widgets/scrollarea.h"
#include "utils/delete2.h"
-#include "utils/gettext.h"
#include "debug.h"
diff --git a/src/gui/widgets/widget.cpp b/src/gui/widgets/widget.cpp
index dfeda422e..7079f054f 100644
--- a/src/gui/widgets/widget.cpp
+++ b/src/gui/widgets/widget.cpp
@@ -69,8 +69,6 @@
#include "events/actionevent.h"
-#include "events/event.h"
-
#include "gui/focushandler.h"
#include "listeners/actionlistener.h"
diff --git a/src/gui/windows/chatwindow.h b/src/gui/windows/chatwindow.h
index 1da6c6016..57ef51629 100644
--- a/src/gui/windows/chatwindow.h
+++ b/src/gui/windows/chatwindow.h
@@ -31,7 +31,6 @@
#include "listeners/actionlistener.h"
#include "listeners/attributelistener.h"
-#include "listeners/configlistener.h"
#include "listeners/keylistener.h"
#include "listeners/statlistener.h"
diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp
index c2804586f..f74a51fc4 100644
--- a/src/net/eathena/beinghandler.cpp
+++ b/src/net/eathena/beinghandler.cpp
@@ -448,7 +448,7 @@ void BeingHandler::processBeingChangeLookContinue(Being *const dstBeing,
SPRITE_HAIR_COLOR)).getDyeColorsString(id));
break;
case 7: // Clothes color. Now used as look
- dstBeing->setLook(id);
+ dstBeing->setLook(static_cast<uint8_t>(id));
break;
case 8: // eAthena LOOK_SHIELD
if (!mHideShield)
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
{