summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-03-23 11:14:00 -0600
committerJared Adams <jaxad0127@gmail.com>2009-03-23 11:14:00 -0600
commiteee4c9a1e2a9fc58ccb8ad05acfe0b0e41ec3fab (patch)
treee6a09e53f092b94614ea66d92af27c684772cd42 /src/net
parent1850cca2e8ba43b1e70385d848dca9f3a91fef4a (diff)
downloadmana-eee4c9a1e2a9fc58ccb8ad05acfe0b0e41ec3fab.tar.gz
mana-eee4c9a1e2a9fc58ccb8ad05acfe0b0e41ec3fab.tar.bz2
mana-eee4c9a1e2a9fc58ccb8ad05acfe0b0e41ec3fab.tar.xz
mana-eee4c9a1e2a9fc58ccb8ad05acfe0b0e41ec3fab.zip
Move all TMWServ-specific code to net/tmwserv
Also fix several instances where the same net handler was being used for both servers, and a few other related oddities.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/messagehandler.cpp2
-rw-r--r--src/net/tmwserv/accountserver/account.cpp (renamed from src/net/accountserver/account.cpp)4
-rw-r--r--src/net/tmwserv/accountserver/account.h (renamed from src/net/accountserver/account.h)0
-rw-r--r--src/net/tmwserv/accountserver/accountserver.cpp (renamed from src/net/accountserver/accountserver.cpp)4
-rw-r--r--src/net/tmwserv/accountserver/accountserver.h (renamed from src/net/accountserver/accountserver.h)0
-rw-r--r--src/net/tmwserv/accountserver/internal.cpp (renamed from src/net/accountserver/internal.cpp)0
-rw-r--r--src/net/tmwserv/accountserver/internal.h (renamed from src/net/accountserver/internal.h)0
-rw-r--r--src/net/tmwserv/beinghandler.cpp (renamed from src/net/beinghandler.cpp)24
-rw-r--r--src/net/tmwserv/beinghandler.h (renamed from src/net/beinghandler.h)2
-rw-r--r--src/net/tmwserv/buysellhandler.cpp (renamed from src/net/buysellhandler.cpp)16
-rw-r--r--src/net/tmwserv/buysellhandler.h (renamed from src/net/buysellhandler.h)2
-rw-r--r--src/net/tmwserv/charserverhandler.cpp (renamed from src/net/charserverhandler.cpp)16
-rw-r--r--src/net/tmwserv/charserverhandler.h (renamed from src/net/charserverhandler.h)4
-rw-r--r--src/net/tmwserv/chathandler.cpp (renamed from src/net/chathandler.cpp)16
-rw-r--r--src/net/tmwserv/chathandler.h (renamed from src/net/chathandler.h)2
-rw-r--r--src/net/tmwserv/chatserver/chatserver.cpp (renamed from src/net/chatserver/chatserver.cpp)2
-rw-r--r--src/net/tmwserv/chatserver/chatserver.h (renamed from src/net/chatserver/chatserver.h)0
-rw-r--r--src/net/tmwserv/chatserver/guild.cpp (renamed from src/net/chatserver/guild.cpp)4
-rw-r--r--src/net/tmwserv/chatserver/guild.h (renamed from src/net/chatserver/guild.h)0
-rw-r--r--src/net/tmwserv/chatserver/internal.cpp (renamed from src/net/chatserver/internal.cpp)0
-rw-r--r--src/net/tmwserv/chatserver/internal.h (renamed from src/net/chatserver/internal.h)0
-rw-r--r--src/net/tmwserv/chatserver/party.cpp (renamed from src/net/chatserver/party.cpp)4
-rw-r--r--src/net/tmwserv/chatserver/party.h (renamed from src/net/chatserver/party.h)0
-rw-r--r--src/net/tmwserv/connection.cpp (renamed from src/net/connection.cpp)4
-rw-r--r--src/net/tmwserv/connection.h (renamed from src/net/connection.h)0
-rw-r--r--src/net/tmwserv/effecthandler.cpp (renamed from src/net/effecthandler.cpp)4
-rw-r--r--src/net/tmwserv/effecthandler.h (renamed from src/net/effecthandler.h)2
-rw-r--r--src/net/tmwserv/gameserver/gameserver.cpp (renamed from src/net/gameserver/gameserver.cpp)2
-rw-r--r--src/net/tmwserv/gameserver/gameserver.h (renamed from src/net/gameserver/gameserver.h)0
-rw-r--r--src/net/tmwserv/gameserver/internal.cpp (renamed from src/net/gameserver/internal.cpp)0
-rw-r--r--src/net/tmwserv/gameserver/internal.h (renamed from src/net/gameserver/internal.h)0
-rw-r--r--src/net/tmwserv/gameserver/player.cpp (renamed from src/net/gameserver/player.cpp)2
-rw-r--r--src/net/tmwserv/gameserver/player.h (renamed from src/net/gameserver/player.h)2
-rw-r--r--src/net/tmwserv/guildhandler.cpp (renamed from src/net/guildhandler.cpp)16
-rw-r--r--src/net/tmwserv/guildhandler.h (renamed from src/net/guildhandler.h)2
-rw-r--r--src/net/tmwserv/internal.cpp (renamed from src/net/internal.cpp)0
-rw-r--r--src/net/tmwserv/internal.h (renamed from src/net/internal.h)0
-rw-r--r--src/net/tmwserv/inventoryhandler.cpp (renamed from src/net/inventoryhandler.cpp)16
-rw-r--r--src/net/tmwserv/inventoryhandler.h (renamed from src/net/inventoryhandler.h)2
-rw-r--r--src/net/tmwserv/itemhandler.cpp (renamed from src/net/itemhandler.cpp)6
-rw-r--r--src/net/tmwserv/itemhandler.h (renamed from src/net/itemhandler.h)2
-rw-r--r--src/net/tmwserv/loginhandler.cpp (renamed from src/net/loginhandler.cpp)6
-rw-r--r--src/net/tmwserv/loginhandler.h (renamed from src/net/loginhandler.h)2
-rw-r--r--src/net/tmwserv/logouthandler.cpp (renamed from src/net/logouthandler.cpp)4
-rw-r--r--src/net/tmwserv/logouthandler.h (renamed from src/net/logouthandler.h)2
-rw-r--r--src/net/tmwserv/network.cpp (renamed from src/net/network.cpp)6
-rw-r--r--src/net/tmwserv/network.h (renamed from src/net/network.h)0
-rw-r--r--src/net/tmwserv/npchandler.cpp (renamed from src/net/npchandler.cpp)12
-rw-r--r--src/net/tmwserv/npchandler.h (renamed from src/net/npchandler.h)2
-rw-r--r--src/net/tmwserv/partyhandler.cpp (renamed from src/net/partyhandler.cpp)10
-rw-r--r--src/net/tmwserv/partyhandler.h (renamed from src/net/partyhandler.h)2
-rw-r--r--src/net/tmwserv/playerhandler.cpp (renamed from src/net/playerhandler.cpp)32
-rw-r--r--src/net/tmwserv/playerhandler.h (renamed from src/net/playerhandler.h)2
-rw-r--r--src/net/tmwserv/protocol.h (renamed from src/net/protocol.h)0
-rw-r--r--src/net/tmwserv/tradehandler.cpp (renamed from src/net/tradehandler.cpp)14
-rw-r--r--src/net/tmwserv/tradehandler.h (renamed from src/net/tradehandler.h)2
56 files changed, 129 insertions, 129 deletions
diff --git a/src/net/messagehandler.cpp b/src/net/messagehandler.cpp
index a765d0e8..85f10090 100644
--- a/src/net/messagehandler.cpp
+++ b/src/net/messagehandler.cpp
@@ -23,7 +23,7 @@
#include "messagehandler.h"
#ifdef TMWSERV_SUPPORT
-#include "network.h"
+#include "tmwserv/network.h"
#else
#include "ea/network.h"
#endif
diff --git a/src/net/accountserver/account.cpp b/src/net/tmwserv/accountserver/account.cpp
index f734c4eb..a679e233 100644
--- a/src/net/accountserver/account.cpp
+++ b/src/net/tmwserv/accountserver/account.cpp
@@ -26,10 +26,10 @@
#include "internal.h"
#include "../connection.h"
-#include "../messageout.h"
+#include "../../messageout.h"
#include "../protocol.h"
-#include "../../utils/sha256.h"
+#include "../../../utils/sha256.h"
void Net::AccountServer::Account::createCharacter(
const std::string &name, char hairStyle, char hairColor, char gender,
diff --git a/src/net/accountserver/account.h b/src/net/tmwserv/accountserver/account.h
index 581bcb42..581bcb42 100644
--- a/src/net/accountserver/account.h
+++ b/src/net/tmwserv/accountserver/account.h
diff --git a/src/net/accountserver/accountserver.cpp b/src/net/tmwserv/accountserver/accountserver.cpp
index b1ce590c..8093468c 100644
--- a/src/net/accountserver/accountserver.cpp
+++ b/src/net/tmwserv/accountserver/accountserver.cpp
@@ -26,10 +26,10 @@
#include "internal.h"
#include "../connection.h"
-#include "../messageout.h"
+#include "../../messageout.h"
#include "../protocol.h"
-#include "../../utils/sha256.h"
+#include "../../../utils/sha256.h"
void Net::AccountServer::login(Net::Connection *connection, int version,
const std::string &username, const std::string &password)
diff --git a/src/net/accountserver/accountserver.h b/src/net/tmwserv/accountserver/accountserver.h
index 8e0573fc..8e0573fc 100644
--- a/src/net/accountserver/accountserver.h
+++ b/src/net/tmwserv/accountserver/accountserver.h
diff --git a/src/net/accountserver/internal.cpp b/src/net/tmwserv/accountserver/internal.cpp
index a3be76a1..a3be76a1 100644
--- a/src/net/accountserver/internal.cpp
+++ b/src/net/tmwserv/accountserver/internal.cpp
diff --git a/src/net/accountserver/internal.h b/src/net/tmwserv/accountserver/internal.h
index b3d64582..b3d64582 100644
--- a/src/net/accountserver/internal.h
+++ b/src/net/tmwserv/accountserver/internal.h
diff --git a/src/net/beinghandler.cpp b/src/net/tmwserv/beinghandler.cpp
index 8f1fb8fd..ac33b6fe 100644
--- a/src/net/beinghandler.cpp
+++ b/src/net/tmwserv/beinghandler.cpp
@@ -23,22 +23,22 @@
#include <SDL_types.h>
-#include "messagein.h"
+#include "../messagein.h"
#include "protocol.h"
-#include "../being.h"
-#include "../beingmanager.h"
-#include "../game.h"
-#include "../localplayer.h"
-#include "../log.h"
-#include "../main.h"
-#include "../npc.h"
-#include "../particle.h"
-#include "../sound.h"
+#include "../../being.h"
+#include "../../beingmanager.h"
+#include "../../game.h"
+#include "../../localplayer.h"
+#include "../../log.h"
+#include "../../main.h"
+#include "../../npc.h"
+#include "../../particle.h"
+#include "../../sound.h"
-#include "../gui/ok_dialog.h"
+#include "../../gui/ok_dialog.h"
-#include "../utils/gettext.h"
+#include "../../utils/gettext.h"
#include "gameserver/player.h"
diff --git a/src/net/beinghandler.h b/src/net/tmwserv/beinghandler.h
index b02728b4..759a0ba3 100644
--- a/src/net/beinghandler.h
+++ b/src/net/tmwserv/beinghandler.h
@@ -22,7 +22,7 @@
#ifndef _TMW_NET_BEINGHANDLER_H
#define _TMW_NET_BEINGHANDLER_H
-#include "messagehandler.h"
+#include "../messagehandler.h"
class BeingHandler : public MessageHandler
{
diff --git a/src/net/buysellhandler.cpp b/src/net/tmwserv/buysellhandler.cpp
index a551f213..54750cbb 100644
--- a/src/net/buysellhandler.cpp
+++ b/src/net/tmwserv/buysellhandler.cpp
@@ -23,17 +23,17 @@
#include <SDL_types.h>
-#include "messagein.h"
+#include "../messagein.h"
#include "protocol.h"
-#include "../beingmanager.h"
-#include "../item.h"
-#include "../localplayer.h"
-#include "../npc.h"
+#include "../../beingmanager.h"
+#include "../../item.h"
+#include "../../localplayer.h"
+#include "../../npc.h"
-#include "../gui/buy.h"
-#include "../gui/chat.h"
-#include "../gui/sell.h"
+#include "../../gui/buy.h"
+#include "../../gui/chat.h"
+#include "../../gui/sell.h"
extern BuyDialog *buyDialog;
extern SellDialog *sellDialog;
diff --git a/src/net/buysellhandler.h b/src/net/tmwserv/buysellhandler.h
index 719b76d9..5bf58d8e 100644
--- a/src/net/buysellhandler.h
+++ b/src/net/tmwserv/buysellhandler.h
@@ -22,7 +22,7 @@
#ifndef NET_BUYSELLHANDLER_H
#define NET_BUYSELLHANDLER_H
-#include "messagehandler.h"
+#include "../messagehandler.h"
class BuySellHandler : public MessageHandler
{
diff --git a/src/net/charserverhandler.cpp b/src/net/tmwserv/charserverhandler.cpp
index 5905dba0..50b0e739 100644
--- a/src/net/charserverhandler.cpp
+++ b/src/net/tmwserv/charserverhandler.cpp
@@ -22,17 +22,17 @@
#include "charserverhandler.h"
#include "connection.h"
-#include "messagein.h"
+#include "../messagein.h"
#include "protocol.h"
-#include "../game.h"
-#include "../localplayer.h"
-#include "../log.h"
-#include "../logindata.h"
-#include "../main.h"
+#include "../../game.h"
+#include "../../localplayer.h"
+#include "../../log.h"
+#include "../../logindata.h"
+#include "../../main.h"
-#include "../gui/ok_dialog.h"
-#include "../gui/char_select.h"
+#include "../../gui/ok_dialog.h"
+#include "../../gui/char_select.h"
extern Net::Connection *gameServerConnection;
extern Net::Connection *chatServerConnection;
diff --git a/src/net/charserverhandler.h b/src/net/tmwserv/charserverhandler.h
index 08ba5102..41afa321 100644
--- a/src/net/charserverhandler.h
+++ b/src/net/tmwserv/charserverhandler.h
@@ -22,9 +22,9 @@
#ifndef _TMW_NET_CHARSERVERHANDLER_H
#define _TMW_NET_CHARSERVERHANDLER_H
-#include "messagehandler.h"
+#include "../messagehandler.h"
-#include "../lockedarray.h"
+#include "../../lockedarray.h"
class CharCreateDialog;
class LocalPlayer;
diff --git a/src/net/chathandler.cpp b/src/net/tmwserv/chathandler.cpp
index 90af899a..0d66d8aa 100644
--- a/src/net/chathandler.cpp
+++ b/src/net/tmwserv/chathandler.cpp
@@ -25,17 +25,17 @@
#include <string>
#include <iostream>
-#include "messagein.h"
+#include "../messagein.h"
#include "protocol.h"
-#include "../being.h"
-#include "../beingmanager.h"
-#include "../game.h"
-#include "../channel.h"
-#include "../channelmanager.h"
+#include "../../being.h"
+#include "../../beingmanager.h"
+#include "../../game.h"
+#include "../../channel.h"
+#include "../../channelmanager.h"
-#include "../gui/chat.h"
-#include "../gui/guildwindow.h"
+#include "../../gui/chat.h"
+#include "../../gui/guildwindow.h"
extern Being *player_node;
diff --git a/src/net/chathandler.h b/src/net/tmwserv/chathandler.h
index a9e9bd99..013b955d 100644
--- a/src/net/chathandler.h
+++ b/src/net/tmwserv/chathandler.h
@@ -22,7 +22,7 @@
#ifndef NET_CHATHANDLER_H
#define NET_CHATHANDLER_H
-#include "messagehandler.h"
+#include "../messagehandler.h"
class ChatHandler : public MessageHandler
{
diff --git a/src/net/chatserver/chatserver.cpp b/src/net/tmwserv/chatserver/chatserver.cpp
index 94e36b94..39ffef4a 100644
--- a/src/net/chatserver/chatserver.cpp
+++ b/src/net/tmwserv/chatserver/chatserver.cpp
@@ -24,7 +24,7 @@
#include "internal.h"
#include "../connection.h"
-#include "../messageout.h"
+#include "../../messageout.h"
#include "../protocol.h"
using Net::ChatServer::connection;
diff --git a/src/net/chatserver/chatserver.h b/src/net/tmwserv/chatserver/chatserver.h
index 1129239a..1129239a 100644
--- a/src/net/chatserver/chatserver.h
+++ b/src/net/tmwserv/chatserver/chatserver.h
diff --git a/src/net/chatserver/guild.cpp b/src/net/tmwserv/chatserver/guild.cpp
index 042ff013..649eccdf 100644
--- a/src/net/chatserver/guild.cpp
+++ b/src/net/tmwserv/chatserver/guild.cpp
@@ -25,10 +25,10 @@
#include "internal.h"
#include "../connection.h"
-#include "../messageout.h"
+#include "../../messageout.h"
#include "../protocol.h"
-#include "../../log.h"
+#include "../../../log.h"
void Net::ChatServer::Guild::createGuild(const std::string &name)
{
diff --git a/src/net/chatserver/guild.h b/src/net/tmwserv/chatserver/guild.h
index 6c35be9f..6c35be9f 100644
--- a/src/net/chatserver/guild.h
+++ b/src/net/tmwserv/chatserver/guild.h
diff --git a/src/net/chatserver/internal.cpp b/src/net/tmwserv/chatserver/internal.cpp
index 0822d93d..0822d93d 100644
--- a/src/net/chatserver/internal.cpp
+++ b/src/net/tmwserv/chatserver/internal.cpp
diff --git a/src/net/chatserver/internal.h b/src/net/tmwserv/chatserver/internal.h
index b0f137c5..b0f137c5 100644
--- a/src/net/chatserver/internal.h
+++ b/src/net/tmwserv/chatserver/internal.h
diff --git a/src/net/chatserver/party.cpp b/src/net/tmwserv/chatserver/party.cpp
index 56eb57d2..c2c0b00a 100644
--- a/src/net/chatserver/party.cpp
+++ b/src/net/tmwserv/chatserver/party.cpp
@@ -25,10 +25,10 @@
#include "internal.h"
#include "../connection.h"
-#include "../messageout.h"
+#include "../../messageout.h"
#include "../protocol.h"
-#include "../../log.h"
+#include "../../../log.h"
void Net::ChatServer::Party::invitePlayer(const std::string &name)
{
diff --git a/src/net/chatserver/party.h b/src/net/tmwserv/chatserver/party.h
index c1febd66..c1febd66 100644
--- a/src/net/chatserver/party.h
+++ b/src/net/tmwserv/chatserver/party.h
diff --git a/src/net/connection.cpp b/src/net/tmwserv/connection.cpp
index 7d3c2328..5e61ba61 100644
--- a/src/net/connection.cpp
+++ b/src/net/tmwserv/connection.cpp
@@ -24,9 +24,9 @@
#include <string>
#include "internal.h"
-#include "messageout.h"
+#include "../messageout.h"
-#include "../log.h"
+#include "../../log.h"
Net::Connection::Connection(ENetHost *client):
mConnection(0), mClient(client)
diff --git a/src/net/connection.h b/src/net/tmwserv/connection.h
index 4ab3d24d..4ab3d24d 100644
--- a/src/net/connection.h
+++ b/src/net/tmwserv/connection.h
diff --git a/src/net/effecthandler.cpp b/src/net/tmwserv/effecthandler.cpp
index 8411b9e7..ef8d63fb 100644
--- a/src/net/effecthandler.cpp
+++ b/src/net/tmwserv/effecthandler.cpp
@@ -21,10 +21,10 @@
#include "effecthandler.h"
-#include "messagein.h"
+#include "../messagein.h"
#include "protocol.h"
-#include "../effectmanager.h"
+#include "../../effectmanager.h"
EffectHandler::EffectHandler()
diff --git a/src/net/effecthandler.h b/src/net/tmwserv/effecthandler.h
index 283c7c10..a19f13c3 100644
--- a/src/net/effecthandler.h
+++ b/src/net/tmwserv/effecthandler.h
@@ -22,7 +22,7 @@
#ifndef _TMW_NET_EFFECTSHANDLER_H
#define _TMW_NET_EFFECTSHANDLER_H
-#include "messagehandler.h"
+#include "../messagehandler.h"
class EffectHandler : public MessageHandler
{
diff --git a/src/net/gameserver/gameserver.cpp b/src/net/tmwserv/gameserver/gameserver.cpp
index 1bdaef26..013356d8 100644
--- a/src/net/gameserver/gameserver.cpp
+++ b/src/net/tmwserv/gameserver/gameserver.cpp
@@ -24,7 +24,7 @@
#include "internal.h"
#include "../connection.h"
-#include "../messageout.h"
+#include "../../messageout.h"
#include "../protocol.h"
void Net::GameServer::connect(Net::Connection *connection,
diff --git a/src/net/gameserver/gameserver.h b/src/net/tmwserv/gameserver/gameserver.h
index 5ea2c718..5ea2c718 100644
--- a/src/net/gameserver/gameserver.h
+++ b/src/net/tmwserv/gameserver/gameserver.h
diff --git a/src/net/gameserver/internal.cpp b/src/net/tmwserv/gameserver/internal.cpp
index 6b6ba081..6b6ba081 100644
--- a/src/net/gameserver/internal.cpp
+++ b/src/net/tmwserv/gameserver/internal.cpp
diff --git a/src/net/gameserver/internal.h b/src/net/tmwserv/gameserver/internal.h
index df9787fe..df9787fe 100644
--- a/src/net/gameserver/internal.h
+++ b/src/net/tmwserv/gameserver/internal.h
diff --git a/src/net/gameserver/player.cpp b/src/net/tmwserv/gameserver/player.cpp
index 95c13ec2..4eccdceb 100644
--- a/src/net/gameserver/player.cpp
+++ b/src/net/tmwserv/gameserver/player.cpp
@@ -24,7 +24,7 @@
#include "internal.h"
#include "../connection.h"
-#include "../messageout.h"
+#include "../../messageout.h"
#include "../protocol.h"
void RespawnRequestListener::action(const gcn::ActionEvent &event)
diff --git a/src/net/gameserver/player.h b/src/net/tmwserv/gameserver/player.h
index 9e68ced9..496e3a70 100644
--- a/src/net/gameserver/player.h
+++ b/src/net/tmwserv/gameserver/player.h
@@ -22,7 +22,7 @@
#ifndef _TMW_NET_GAMESERVER_PLAYER_H
#define _TMW_NET_GAMESERVER_PLAYER_H
-#include "../../being.h"
+#include "../../../being.h"
#include <guichan/actionlistener.hpp>
diff --git a/src/net/guildhandler.cpp b/src/net/tmwserv/guildhandler.cpp
index cf886ab3..1699ffac 100644
--- a/src/net/guildhandler.cpp
+++ b/src/net/tmwserv/guildhandler.cpp
@@ -23,18 +23,18 @@
#include "guildhandler.h"
#include "protocol.h"
-#include "messagein.h"
+#include "../messagein.h"
#include "chatserver/chatserver.h"
#include "chatserver/guild.h"
-#include "../gui/guildwindow.h"
-#include "../gui/chat.h"
-#include "../guild.h"
-#include "../log.h"
-#include "../localplayer.h"
-#include "../channel.h"
-#include "../channelmanager.h"
+#include "../../gui/guildwindow.h"
+#include "../../gui/chat.h"
+#include "../../guild.h"
+#include "../../log.h"
+#include "../../localplayer.h"
+#include "../../channel.h"
+#include "../../channelmanager.h"
GuildHandler::GuildHandler()
{
diff --git a/src/net/guildhandler.h b/src/net/tmwserv/guildhandler.h
index 4eb2da0b..a962a577 100644
--- a/src/net/guildhandler.h
+++ b/src/net/tmwserv/guildhandler.h
@@ -22,7 +22,7 @@
#ifndef _TMW_NET_GUILDHANDLER_H
#define _TMW_NET_GUILDHANDLER_H
-#include "messagehandler.h"
+#include "../messagehandler.h"
#include <string>
diff --git a/src/net/internal.cpp b/src/net/tmwserv/internal.cpp
index 4cb88a4e..4cb88a4e 100644
--- a/src/net/internal.cpp
+++ b/src/net/tmwserv/internal.cpp
diff --git a/src/net/internal.h b/src/net/tmwserv/internal.h
index 1e411605..1e411605 100644
--- a/src/net/internal.h
+++ b/src/net/tmwserv/internal.h
diff --git a/src/net/inventoryhandler.cpp b/src/net/tmwserv/inventoryhandler.cpp
index 41032f13..c6e82410 100644
--- a/src/net/inventoryhandler.cpp
+++ b/src/net/tmwserv/inventoryhandler.cpp
@@ -23,17 +23,17 @@
#include <SDL_types.h>
-#include "messagein.h"
+#include "../messagein.h"
#include "protocol.h"
-#include "../equipment.h"
-#include "../inventory.h"
-#include "../item.h"
-#include "../itemshortcut.h"
-#include "../localplayer.h"
+#include "../../equipment.h"
+#include "../../inventory.h"
+#include "../../item.h"
+#include "../../itemshortcut.h"
+#include "../../localplayer.h"
-#include "../gui/chat.h"
-#include "../resources/iteminfo.h"
+#include "../../gui/chat.h"
+#include "../../resources/iteminfo.h"
InventoryHandler::InventoryHandler()
{
diff --git a/src/net/inventoryhandler.h b/src/net/tmwserv/inventoryhandler.h
index 9b457abe..b2e469fa 100644
--- a/src/net/inventoryhandler.h
+++ b/src/net/tmwserv/inventoryhandler.h
@@ -22,7 +22,7 @@
#ifndef NET_INVENTORYHANDLER_H
#define NET_INVENTORYHANDLER_H
-#include "messagehandler.h"
+#include "../messagehandler.h"
class InventoryHandler : public MessageHandler
{
diff --git a/src/net/itemhandler.cpp b/src/net/tmwserv/itemhandler.cpp
index 189c6eb9..23d210cf 100644
--- a/src/net/itemhandler.cpp
+++ b/src/net/tmwserv/itemhandler.cpp
@@ -20,11 +20,11 @@
*/
#include "itemhandler.h"
-#include "messagein.h"
+#include "../messagein.h"
#include "protocol.h"
-#include "../engine.h"
-#include "../flooritemmanager.h"
+#include "../../engine.h"
+#include "../../flooritemmanager.h"
ItemHandler::ItemHandler()
{
diff --git a/src/net/itemhandler.h b/src/net/tmwserv/itemhandler.h
index 12057bb1..da93f6b4 100644
--- a/src/net/itemhandler.h
+++ b/src/net/tmwserv/itemhandler.h
@@ -22,7 +22,7 @@
#ifndef NET_ITEMHANDLER_H
#define NET_ITEMHANDLER_H
-#include "messagehandler.h"
+#include "../messagehandler.h"
class ItemHandler : public MessageHandler
{
diff --git a/src/net/loginhandler.cpp b/src/net/tmwserv/loginhandler.cpp
index 37c3608a..c49d6e47 100644
--- a/src/net/loginhandler.cpp
+++ b/src/net/tmwserv/loginhandler.cpp
@@ -21,11 +21,11 @@
#include "loginhandler.h"
-#include "messagein.h"
+#include "../messagein.h"
#include "protocol.h"
-#include "../logindata.h"
-#include "../main.h"
+#include "../../logindata.h"
+#include "../../main.h"
LoginHandler::LoginHandler()
{
diff --git a/src/net/loginhandler.h b/src/net/tmwserv/loginhandler.h
index 015d6383..a7310407 100644
--- a/src/net/loginhandler.h
+++ b/src/net/tmwserv/loginhandler.h
@@ -22,7 +22,7 @@
#ifndef _TMW_NET_LOGINHANDLER_H
#define _TMW_NET_LOGINHANDLER_H
-#include "messagehandler.h"
+#include "../messagehandler.h"
class LoginData;
diff --git a/src/net/logouthandler.cpp b/src/net/tmwserv/logouthandler.cpp
index 6dea4c83..a7a1eb2e 100644
--- a/src/net/logouthandler.cpp
+++ b/src/net/tmwserv/logouthandler.cpp
@@ -21,10 +21,10 @@
#include "logouthandler.h"
-#include "messagein.h"
+#include "../messagein.h"
#include "protocol.h"
-#include "../main.h"
+#include "../../main.h"
LogoutHandler::LogoutHandler():
mPassToken(NULL), mScenario(LOGOUT_EXIT),
diff --git a/src/net/logouthandler.h b/src/net/tmwserv/logouthandler.h
index 369eaa80..3b4f9738 100644
--- a/src/net/logouthandler.h
+++ b/src/net/tmwserv/logouthandler.h
@@ -24,7 +24,7 @@
#include <string>
-#include "messagehandler.h"
+#include "../messagehandler.h"
/**
* The different scenarios for which LogoutHandler can be used
diff --git a/src/net/network.cpp b/src/net/tmwserv/network.cpp
index 57e368e2..d3bc88fa 100644
--- a/src/net/network.cpp
+++ b/src/net/tmwserv/network.cpp
@@ -27,10 +27,10 @@
#include "connection.h"
#include "internal.h"
-#include "messagehandler.h"
-#include "messagein.h"
+#include "../messagehandler.h"
+#include "../messagein.h"
-#include "../log.h"
+#include "../../log.h"
/**
* The local host which is shared for all outgoing connections.
diff --git a/src/net/network.h b/src/net/tmwserv/network.h
index 13576e79..13576e79 100644
--- a/src/net/network.h
+++ b/src/net/tmwserv/network.h
diff --git a/src/net/npchandler.cpp b/src/net/tmwserv/npchandler.cpp
index 30507537..53f3c7b2 100644
--- a/src/net/npchandler.cpp
+++ b/src/net/tmwserv/npchandler.cpp
@@ -21,15 +21,15 @@
#include "npchandler.h"
-#include "messagein.h"
+#include "../messagein.h"
#include "protocol.h"
-#include "../beingmanager.h"
-#include "../npc.h"
+#include "../../beingmanager.h"
+#include "../../npc.h"
-#include "../gui/npclistdialog.h"
-#include "../gui/npcpostdialog.h"
-#include "../gui/npc_text.h"
+#include "../../gui/npclistdialog.h"
+#include "../../gui/npcpostdialog.h"
+#include "../../gui/npc_text.h"
extern NpcListDialog *npcListDialog;
extern NpcTextDialog *npcTextDialog;
diff --git a/src/net/npchandler.h b/src/net/tmwserv/npchandler.h
index 18ab0a05..49df20c3 100644
--- a/src/net/npchandler.h
+++ b/src/net/tmwserv/npchandler.h
@@ -22,7 +22,7 @@
#ifndef NET_NPCHANDLER_H
#define NET_NPCHANDLER_H
-#include "messagehandler.h"
+#include "../messagehandler.h"
class NPCHandler : public MessageHandler
{
diff --git a/src/net/partyhandler.cpp b/src/net/tmwserv/partyhandler.cpp
index 60c51821..eb331bac 100644
--- a/src/net/partyhandler.cpp
+++ b/src/net/tmwserv/partyhandler.cpp
@@ -23,14 +23,14 @@
#include "partyhandler.h"
#include "protocol.h"
-#include "messagein.h"
+#include "../messagein.h"
#include "chatserver/chatserver.h"
-#include "../gui/chat.h"
-#include "../gui/partywindow.h"
-#include "../log.h"
-#include "../localplayer.h"
+#include "../../gui/chat.h"
+#include "../../gui/partywindow.h"
+#include "../../log.h"
+#include "../../localplayer.h"
PartyHandler::PartyHandler()
{
diff --git a/src/net/partyhandler.h b/src/net/tmwserv/partyhandler.h
index b4257c34..c1ec6eda 100644
--- a/src/net/partyhandler.h
+++ b/src/net/tmwserv/partyhandler.h
@@ -22,7 +22,7 @@
#ifndef _TMW_NET_PARTYHANDLER_H
#define _TMW_NET_PARTYHANDLER_H
-#include "messagehandler.h"
+#include "../messagehandler.h"
#include <string>
diff --git a/src/net/playerhandler.cpp b/src/net/tmwserv/playerhandler.cpp
index b4e2f328..d4850f43 100644
--- a/src/net/playerhandler.cpp
+++ b/src/net/tmwserv/playerhandler.cpp
@@ -21,24 +21,24 @@
#include "playerhandler.h"
-#include "messagein.h"
+#include "../messagein.h"
#include "protocol.h"
-#include "../engine.h"
-#include "../localplayer.h"
-#include "../log.h"
-#include "../particle.h"
-#include "../npc.h"
-
-#include "../gui/buy.h"
-#include "../gui/chat.h"
-#include "../gui/gui.h"
-#include "../gui/npclistdialog.h"
-#include "../gui/npc_text.h"
-#include "../gui/ok_dialog.h"
-#include "../gui/sell.h"
-#include "../gui/skill.h"
-#include "../gui/viewport.h"
+#include "../../engine.h"
+#include "../../localplayer.h"
+#include "../../log.h"
+#include "../../particle.h"
+#include "../../npc.h"
+
+#include "../../gui/buy.h"
+#include "../../gui/chat.h"
+#include "../../gui/gui.h"
+#include "../../gui/npclistdialog.h"
+#include "../../gui/npc_text.h"
+#include "../../gui/ok_dialog.h"
+#include "../../gui/sell.h"
+#include "../../gui/skill.h"
+#include "../../gui/viewport.h"
// TODO Move somewhere else
OkDialog *weightNotice = NULL;
diff --git a/src/net/playerhandler.h b/src/net/tmwserv/playerhandler.h
index fef767da..a11109c6 100644
--- a/src/net/playerhandler.h
+++ b/src/net/tmwserv/playerhandler.h
@@ -22,7 +22,7 @@
#ifndef NET_PLAYERHANDLER_H
#define NET_PLAYERHANDLER_H
-#include "messagehandler.h"
+#include "../messagehandler.h"
class PlayerHandler : public MessageHandler
{
diff --git a/src/net/protocol.h b/src/net/tmwserv/protocol.h
index 73dd65e0..73dd65e0 100644
--- a/src/net/protocol.h
+++ b/src/net/tmwserv/protocol.h
diff --git a/src/net/tradehandler.cpp b/src/net/tmwserv/tradehandler.cpp
index 5d93016f..12d47745 100644
--- a/src/net/tradehandler.cpp
+++ b/src/net/tmwserv/tradehandler.cpp
@@ -21,18 +21,18 @@
#include "tradehandler.h"
-#include "messagein.h"
+#include "../messagein.h"
#include "protocol.h"
#include "gameserver/player.h"
-#include "../beingmanager.h"
-#include "../item.h"
-#include "../localplayer.h"
+#include "../../beingmanager.h"
+#include "../../item.h"
+#include "../../localplayer.h"
-#include "../gui/chat.h"
-#include "../gui/confirm_dialog.h"
-#include "../gui/trade.h"
+#include "../../gui/chat.h"
+#include "../../gui/confirm_dialog.h"
+#include "../../gui/trade.h"
std::string tradePartnerName;
int tradePartnerID;
diff --git a/src/net/tradehandler.h b/src/net/tmwserv/tradehandler.h
index 6ffe17b5..0b634b66 100644
--- a/src/net/tradehandler.h
+++ b/src/net/tmwserv/tradehandler.h
@@ -22,7 +22,7 @@
#ifndef NET_TRADEHANDLER_H
#define NET_TRADEHANDLER_H
-#include "messagehandler.h"
+#include "../messagehandler.h"
class TradeHandler : public MessageHandler
{