summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-13 17:12:06 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-13 17:12:06 +0300
commitadb67cb947885af8f74eb8ad943d2862a198805d (patch)
tree13aac08184c59cae8b48a59293b64875b3f09ae5 /src/net/eathena
parent357560f6a8a0b61d94b6a70a519a2d3ece6f364d (diff)
downloadplus-adb67cb947885af8f74eb8ad943d2862a198805d.tar.gz
plus-adb67cb947885af8f74eb8ad943d2862a198805d.tar.bz2
plus-adb67cb947885af8f74eb8ad943d2862a198805d.tar.xz
plus-adb67cb947885af8f74eb8ad943d2862a198805d.zip
fix code style.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/beinghandler.cpp1
-rw-r--r--src/net/eathena/gamehandler.cpp2
-rw-r--r--src/net/eathena/inventoryhandler.cpp2
-rw-r--r--src/net/eathena/loginhandler.cpp2
-rw-r--r--src/net/eathena/maphandler.h1
-rw-r--r--src/net/eathena/maptypeproperty2.h31
-rw-r--r--src/net/eathena/skillhandler.cpp2
-rw-r--r--src/net/eathena/tradehandler.cpp2
8 files changed, 24 insertions, 19 deletions
diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp
index aaac021ab..39ab454a1 100644
--- a/src/net/eathena/beinghandler.cpp
+++ b/src/net/eathena/beinghandler.cpp
@@ -25,7 +25,6 @@
#include "actormanager.h"
#include "effectmanager.h"
#include "game.h"
-#include "guildmanager.h"
#include "being/localplayer.h"
#include "being/mercenaryinfo.h"
diff --git a/src/net/eathena/gamehandler.cpp b/src/net/eathena/gamehandler.cpp
index 1a2e312b5..4848946ce 100644
--- a/src/net/eathena/gamehandler.cpp
+++ b/src/net/eathena/gamehandler.cpp
@@ -210,7 +210,7 @@ void GameHandler::processMapLogin(Net::MessageIn &msg)
void GameHandler::processServerTick(Net::MessageIn &msg)
{
- //ignoring
+ // ignoring
msg.readInt32("tick");
}
diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp
index 63799f8db..820f9f71a 100644
--- a/src/net/eathena/inventoryhandler.cpp
+++ b/src/net/eathena/inventoryhandler.cpp
@@ -868,7 +868,7 @@ void InventoryHandler::processCartInfo(Net::MessageIn &msg)
mCartItems.clear();
}
-void InventoryHandler::processCartRemove(Net::MessageIn &msg A_UNUSED)
+void InventoryHandler::processCartRemove(Net::MessageIn &msg)
{
UNIMPLIMENTEDPACKET;
// +++ need close or clear cart?
diff --git a/src/net/eathena/loginhandler.cpp b/src/net/eathena/loginhandler.cpp
index c7cee6b2e..8a02635b0 100644
--- a/src/net/eathena/loginhandler.cpp
+++ b/src/net/eathena/loginhandler.cpp
@@ -241,7 +241,7 @@ void LoginHandler::processLoginError2(Net::MessageIn &msg)
client->setState(STATE_ERROR);
}
-void LoginHandler::processUpdateHost2(Net::MessageIn &msg A_UNUSED)
+void LoginHandler::processUpdateHost2(Net::MessageIn &msg)
{
UNIMPLIMENTEDPACKET;
}
diff --git a/src/net/eathena/maphandler.h b/src/net/eathena/maphandler.h
index 9b5499bf3..9c54ece6d 100644
--- a/src/net/eathena/maphandler.h
+++ b/src/net/eathena/maphandler.h
@@ -27,7 +27,6 @@
namespace EAthena
{
-class MessageOut;
class MapHandler final : public MessageHandler, public Net::MapHandler
{
diff --git a/src/net/eathena/maptypeproperty2.h b/src/net/eathena/maptypeproperty2.h
index a7d2b4c41..dc7ca5a0d 100644
--- a/src/net/eathena/maptypeproperty2.h
+++ b/src/net/eathena/maptypeproperty2.h
@@ -21,22 +21,29 @@
#ifndef NET_EATHENA_MAPTYPEPROPERTY2_H
#define NET_EATHENA_MAPTYPEPROPERTY2_H
+#if defined(__GXX_EXPERIMENTAL_CXX0X__)
+#include <cstdint>
+#else
+#include <stdint.h>
+#endif
+
namespace EAthena
{
struct MapTypeProperty2Bits final
{
- unsigned int party : 1; // allow attack party members (PvP)
- unsigned int guild : 1; // allow attack guild members (GvG)
- unsigned int siege : 1; // show emblem in GvG (WoE castle)
- unsigned int mineffect : 1; // mine effect?
- unsigned int nolockon : 1; // unknown
- unsigned int countpk : 1; // show PvP counter
- unsigned int nopartyformation : 1; // prevent party creation/modification
- unsigned int bg : 1; // is on battle ground
- unsigned int noitemconsumption : 1; // unused
- unsigned int usecart : 1; // unused
- unsigned int summonstarmiracle : 1; // unused
- unsigned int SpareBits : 15; // unused bits
+ uint32_t party : 1; // allow attack party members (PvP)
+ uint32_t guild : 1; // allow attack guild members (GvG)
+ uint32_t siege : 1; // show emblem in GvG (WoE castle)
+ uint32_t mineffect : 1; // mine effect?
+ uint32_t nolockon : 1; // unknown
+ uint32_t countpk : 1; // show PvP counter
+ uint32_t nopartyformation : 1; // prevent party creation/
+ // modification
+ uint32_t bg : 1; // is on battle ground
+ uint32_t noitemconsumption : 1; // unused
+ uint32_t usecart : 1; // unused
+ uint32_t summonstarmiracle : 1; // unused
+ uint32_t SpareBits : 15; // unused bits
} __attribute__((packed));
union MapTypeProperty2 final
diff --git a/src/net/eathena/skillhandler.cpp b/src/net/eathena/skillhandler.cpp
index 8a8962a50..762c60816 100644
--- a/src/net/eathena/skillhandler.cpp
+++ b/src/net/eathena/skillhandler.cpp
@@ -473,7 +473,7 @@ void SkillHandler::processSkillAutoSpells(Net::MessageIn &msg)
for (int f = 0; f < 7; f ++)
msg.readInt32("skill id");
- menu = MenuType::AutoSpell;;
+ menu = MenuType::AutoSpell;
}
void SkillHandler::processSkillDevotionEffect(Net::MessageIn &msg)
diff --git a/src/net/eathena/tradehandler.cpp b/src/net/eathena/tradehandler.cpp
index c11dc6927..5f9a60e47 100644
--- a/src/net/eathena/tradehandler.cpp
+++ b/src/net/eathena/tradehandler.cpp
@@ -264,7 +264,7 @@ void TradeHandler::processTradeItemAddResponse(Net::MessageIn &msg)
}
}
-void TradeHandler::processTradeUndo(Net::MessageIn &msg A_UNUSED)
+void TradeHandler::processTradeUndo(Net::MessageIn &msg)
{
UNIMPLIMENTEDPACKET;
// +++ here need clear trade window from partner side?