summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2014-05-11 13:07:36 +0000
committerrubidium <rubidium@openttd.org>2014-05-11 13:07:36 +0000
commite64249446d2792c2d681f37e10a5a5a26d7151b2 (patch)
tree610d0565d9d6f371c86d6fdea22fbede635b71e8
parent4a523008385fe24dd2bc1683bb41c169285e6d3b (diff)
downloadopenttd-e64249446d2792c2d681f37e10a5a5a26d7151b2.tar.xz
(svn r26577) -Fix [FS#6001]: [Network] Client of non-dedicated server was not correctly put into the first company for all state variables
-rw-r--r--src/network/network.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network.cpp b/src/network/network.cpp
index 156859a40..662f49d17 100644
--- a/src/network/network.cpp
+++ b/src/network/network.cpp
@@ -711,7 +711,7 @@ static void NetworkInitGameInfo()
/* There should be always space for the server. */
assert(NetworkClientInfo::CanAllocateItem());
NetworkClientInfo *ci = new NetworkClientInfo(CLIENT_ID_SERVER);
- ci->client_playas = _network_dedicated ? COMPANY_SPECTATOR : _local_company;
+ ci->client_playas = _network_dedicated ? COMPANY_SPECTATOR : COMPANY_FIRST;
strecpy(ci->client_name, _settings_client.network.client_name, lastof(ci->client_name));
}