mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-19 04:29:09 +00:00
(svn r11829) -Feature: allow reloading openttd.cfg when starting a new game on a dedicated server. Patch by dihedral.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
@@ -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 */
|
||||
|
Reference in New Issue
Block a user