From 178ea3196b0aed0a2a081801f92e1deb06d12628 Mon Sep 17 00:00:00 2001 From: Rubidium Date: Sun, 11 Jul 2021 21:22:29 +0200 Subject: Remove: includes to network/core/config.h from headers when only three cpp files need it --- src/network/network_type.h | 2 -- src/newgrf.cpp | 2 +- src/settings.cpp | 1 + src/settings_table.cpp | 1 + src/settings_type.h | 1 - 5 files changed, 3 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/network/network_type.h b/src/network/network_type.h index a3fb217fe..8564bef83 100644 --- a/src/network/network_type.h +++ b/src/network/network_type.h @@ -10,8 +10,6 @@ #ifndef NETWORK_TYPE_H #define NETWORK_TYPE_H -#include "core/config.h" - /** How many clients can we have */ static const uint MAX_CLIENTS = 255; diff --git a/src/newgrf.cpp b/src/newgrf.cpp index d5dfc427c..7c7d55dea 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -38,7 +38,7 @@ #include "strings_func.h" #include "date_func.h" #include "string_func.h" -#include "network/network.h" +#include "network/core/config.h" #include #include "smallmap_gui.h" #include "genworld.h" diff --git a/src/settings.cpp b/src/settings.cpp index a90dad537..d7a855065 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -28,6 +28,7 @@ #include "currency.h" #include "network/network.h" #include "network/network_func.h" +#include "network/core/config.h" #include "command_func.h" #include "console_func.h" #include "genworld.h" diff --git a/src/settings_table.cpp b/src/settings_table.cpp index 045d8e56c..27fb4ef08 100644 --- a/src/settings_table.cpp +++ b/src/settings_table.cpp @@ -15,6 +15,7 @@ #include "screenshot.h" #include "network/network.h" #include "network/network_func.h" +#include "network/core/config.h" #include "pathfinder/pathfinder_type.h" #include "genworld.h" #include "train.h" diff --git a/src/settings_type.h b/src/settings_type.h index 93e2f049f..8db0febad 100644 --- a/src/settings_type.h +++ b/src/settings_type.h @@ -14,7 +14,6 @@ #include "economy_type.h" #include "town_type.h" #include "transport_type.h" -#include "network/core/config.h" #include "network/network_type.h" #include "company_type.h" #include "cargotype.h" -- cgit v1.2.3-70-g09d2