summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-01-13 01:39:22 +0000
committerrubidium <rubidium@openttd.org>2008-01-13 01:39:22 +0000
commit079abbd04be8e997a0d09eb89ad03884a4e12d00 (patch)
tree991113cabdf8f73af8334d2f01990b558f897f8b /src/network
parentd4e6a6bf57216b39745b61971141e088e15e2d0d (diff)
downloadopenttd-079abbd04be8e997a0d09eb89ad03884a4e12d00.tar.xz
(svn r11829) -Feature: allow reloading openttd.cfg when starting a new game on a dedicated server. Patch by dihedral.
Diffstat (limited to 'src/network')
-rw-r--r--src/network/network.cpp2
-rw-r--r--src/network/network.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/network/network.cpp b/src/network/network.cpp
index 7040a4d71..e24da5053 100644
--- a/src/network/network.cpp
+++ b/src/network/network.cpp
@@ -38,6 +38,8 @@ extern const char _openttd_revision[];
#include "table/strings.h"
+bool _network_reload_cfg;
+
/* Check whether NETWORK_NUM_LANDSCAPES is still in sync with NUM_LANDSCAPE */
assert_compile((int)NETWORK_NUM_LANDSCAPES == (int)NUM_LANDSCAPE);
diff --git a/src/network/network.h b/src/network/network.h
index 7fd551704..98064dad0 100644
--- a/src/network/network.h
+++ b/src/network/network.h
@@ -211,6 +211,7 @@ VARDEF bool _network_server; ///< network-server is active
VARDEF bool _network_available; ///< is network mode available?
VARDEF bool _network_dedicated; ///< are we a dedicated server?
VARDEF bool _network_advertise; ///< is the server advertising to the master server?
+extern bool _network_reload_cfg; ///< will we reload the entire config for the next game?
#else /* ENABLE_NETWORK */
/* Network function stubs when networking is disabled */