summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-06-03 23:38:17 +0300
committerAndrei Karas <akaras@inbox.ru>2016-06-03 23:38:17 +0300
commit1af7d824adf74c7b453e2096a79246d1fd58b19f (patch)
tree68f1f02bc32abdd22b7aaeb976ca280a1cadc477 /src/net
parent58f7f377a7fa6ba1aabfc35e337e7a81f769e45d (diff)
downloadmanaverse-1af7d824adf74c7b453e2096a79246d1fd58b19f.tar.gz
manaverse-1af7d824adf74c7b453e2096a79246d1fd58b19f.tar.bz2
manaverse-1af7d824adf74c7b453e2096a79246d1fd58b19f.tar.xz
manaverse-1af7d824adf74c7b453e2096a79246d1fd58b19f.zip
Fix code style.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/eathena/messagein.cpp4
-rw-r--r--src/net/eathena/network.cpp2
-rw-r--r--src/net/messageout.cpp4
-rw-r--r--src/net/net.h4
-rw-r--r--src/net/tmwa/messagein.cpp4
-rw-r--r--src/net/tmwa/network.cpp2
6 files changed, 14 insertions, 6 deletions
diff --git a/src/net/eathena/messagein.cpp b/src/net/eathena/messagein.cpp
index 7137b468b..3f5149ef9 100644
--- a/src/net/eathena/messagein.cpp
+++ b/src/net/eathena/messagein.cpp
@@ -22,10 +22,12 @@
#include "net/eathena/messagein.h"
+#include "logger.h"
+
#include "net/net.h"
#include "net/packetcounters.h"
-#include "logger.h"
+#include "utils/stringutils.h"
#include <SDL_endian.h>
diff --git a/src/net/eathena/network.cpp b/src/net/eathena/network.cpp
index c5f0adad5..21736333c 100644
--- a/src/net/eathena/network.cpp
+++ b/src/net/eathena/network.cpp
@@ -108,7 +108,7 @@ Network::~Network()
void Network::registerHandlers()
{
#include "net/eathena/recvpackets.inc"
-RECVPACKETS_VOID
+ RECVPACKETS_VOID
}
void Network::clearHandlers()
diff --git a/src/net/messageout.cpp b/src/net/messageout.cpp
index c2e96335f..7292b27ab 100644
--- a/src/net/messageout.cpp
+++ b/src/net/messageout.cpp
@@ -22,10 +22,12 @@
#include "net/messageout.h"
+#include "logger.h"
+
#include "net/net.h"
#include "net/packetcounters.h"
-#include "logger.h"
+#include "utils/stringutils.h"
#include "debug.h"
diff --git a/src/net/net.h b/src/net/net.h
index 70dbbe1d5..4d84830b0 100644
--- a/src/net/net.h
+++ b/src/net/net.h
@@ -31,7 +31,9 @@
* implementations depending on the type of server the client is connecting to.
*/
-#include "net/serverinfo.h"
+#include "enums/net/servertype.h"
+
+class ServerInfo;
namespace Net
{
diff --git a/src/net/tmwa/messagein.cpp b/src/net/tmwa/messagein.cpp
index 095ee91bf..ffea1ee4e 100644
--- a/src/net/tmwa/messagein.cpp
+++ b/src/net/tmwa/messagein.cpp
@@ -22,10 +22,12 @@
#include "net/tmwa/messagein.h"
+#include "logger.h"
+
#include "net/net.h"
#include "net/packetcounters.h"
-#include "logger.h"
+#include "utils/stringutils.h"
#include <SDL_endian.h>
diff --git a/src/net/tmwa/network.cpp b/src/net/tmwa/network.cpp
index bf574b567..12a5b1555 100644
--- a/src/net/tmwa/network.cpp
+++ b/src/net/tmwa/network.cpp
@@ -86,7 +86,7 @@ Network::~Network()
void Network::registerHandlers()
{
#include "net/tmwa/recvpackets.inc"
-RECVPACKETS_VOID
+ RECVPACKETS_VOID
}
void Network::clearHandlers()