From 1a2c82c0b1e6610d18813eceb3fe2997c80c2edb Mon Sep 17 00:00:00 2001 From: heinrich5991 Date: Thu, 23 Feb 2023 10:48:11 +0100 Subject: [PATCH] Mark absolute #includes as absolute --- src/engine/client/client.cpp | 3 +-- src/engine/server/databases/mysql.cpp | 3 ++- src/engine/shared/websockets.cpp | 2 +- src/game/client/components/killmessages.cpp | 2 +- src/game/server/gamecontext.cpp | 5 +++-- src/game/server/gamecontext.h | 2 +- src/game/server/save.cpp | 4 ++-- src/test/score.cpp | 2 +- 8 files changed, 12 insertions(+), 11 deletions(-) diff --git a/src/engine/client/client.cpp b/src/engine/client/client.cpp index 6635d6b5b..8dcd40cfd 100644 --- a/src/engine/client/client.cpp +++ b/src/engine/client/client.cpp @@ -7,6 +7,7 @@ #include #include +#include #include #include #include @@ -68,8 +69,6 @@ #undef main #endif -#include "base/hash.h" - #include #include diff --git a/src/engine/server/databases/mysql.cpp b/src/engine/server/databases/mysql.cpp index 49fe6ddfd..ef7fbfa1a 100644 --- a/src/engine/server/databases/mysql.cpp +++ b/src/engine/server/databases/mysql.cpp @@ -1,5 +1,6 @@ #include "connection.h" -#include "engine/server/databases/connection_pool.h" + +#include #if defined(CONF_MYSQL) #include diff --git a/src/engine/shared/websockets.cpp b/src/engine/shared/websockets.cpp index 74dcadcbb..9728f1f83 100644 --- a/src/engine/shared/websockets.cpp +++ b/src/engine/shared/websockets.cpp @@ -4,9 +4,9 @@ #include #include -#include "base/system.h" #include "protocol.h" #include "ringbuffer.h" +#include #if defined(CONF_FAMILY_UNIX) #include #elif defined(CONF_FAMILY_WINDOWS) diff --git a/src/game/client/components/killmessages.cpp b/src/game/client/components/killmessages.cpp index 9eb319cf4..317725c77 100644 --- a/src/game/client/components/killmessages.cpp +++ b/src/game/client/components/killmessages.cpp @@ -2,11 +2,11 @@ /* If you are missing that file, acquire a complete release at teeworlds.com. */ #include #include +#include #include #include #include -#include "engine/shared/protocol.h" #include "killmessages.h" #include #include diff --git a/src/game/server/gamecontext.cpp b/src/game/server/gamecontext.cpp index b104c8790..f68063952 100644 --- a/src/game/server/gamecontext.cpp +++ b/src/game/server/gamecontext.cpp @@ -1,13 +1,14 @@ /* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */ /* If you are missing that file, acquire a complete release at teeworlds.com. */ +#include "gamecontext.h" + #include -#include "base/system.h" -#include "gamecontext.h" #include "teeinfo.h" #include #include #include +#include #include #include #include diff --git a/src/game/server/gamecontext.h b/src/game/server/gamecontext.h index 03652dcae..1a22ae253 100644 --- a/src/game/server/gamecontext.h +++ b/src/game/server/gamecontext.h @@ -7,12 +7,12 @@ #include #include +#include #include #include #include #include "eventhandler.h" -#include "game/generated/protocol.h" #include "gameworld.h" #include "teehistorian.h" diff --git a/src/game/server/save.cpp b/src/game/server/save.cpp index 6e6f955d6..68e75ba38 100644 --- a/src/game/server/save.cpp +++ b/src/game/server/save.cpp @@ -1,13 +1,13 @@ #include "save.h" -#include +#include // sscanf -#include "engine/shared/protocol.h" #include "entities/character.h" #include "gamemodes/DDRace.h" #include "player.h" #include "teams.h" #include +#include CSaveTee::CSaveTee() = default; diff --git a/src/test/score.cpp b/src/test/score.cpp index 98df4a714..723ffa7f4 100644 --- a/src/test/score.cpp +++ b/src/test/score.cpp @@ -1,9 +1,9 @@ -#include "engine/server/databases/connection_pool.h" #include #include #include #include +#include #include #include