summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRubidium <rubidium@openttd.org>2021-07-11 21:22:29 +0200
committerrubidium42 <rubidium42@users.noreply.github.com>2021-07-11 22:13:59 +0200
commit178ea3196b0aed0a2a081801f92e1deb06d12628 (patch)
treeb8e291caa3d78aba8b84e1dc857b88512746bc02
parentb6a116a2479eb62aece540633c41d0f54a481fd6 (diff)
downloadopenttd-178ea3196b0aed0a2a081801f92e1deb06d12628.tar.xz
Remove: includes to network/core/config.h from headers when only three cpp files need it
-rw-r--r--src/network/network_type.h2
-rw-r--r--src/newgrf.cpp2
-rw-r--r--src/settings.cpp1
-rw-r--r--src/settings_table.cpp1
-rw-r--r--src/settings_type.h1
5 files changed, 3 insertions, 4 deletions
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 <map>
#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"