diff options
author | rubidium <rubidium@openttd.org> | 2009-02-07 12:02:13 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-02-07 12:02:13 +0000 |
commit | d7a053578d6364478c39568198384432e554744a (patch) | |
tree | ac4c9df5dbce1a0da1e3a9c63dac00210a304734 /src/network | |
parent | 39dfd1888087a5f3ea3f83316be1d1b1341bced9 (diff) | |
download | openttd-d7a053578d6364478c39568198384432e554744a.tar.xz |
(svn r15395) -Fix [FS#2611] (r15377): one couldn't reset companies anymore in a 'dedicated' server.
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/network_server.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_server.cpp b/src/network/network_server.cpp index 20820c4ab..03c873684 100644 --- a/src/network/network_server.cpp +++ b/src/network/network_server.cpp @@ -871,7 +871,7 @@ DEF_SERVER_RECEIVE_COMMAND(PACKET_CLIENT_COMMAND) return; } - if (cp.cmd != CMD_COMPANY_CTRL && !IsValidCompanyID(cp.company) && ci->client_id != CLIENT_ID_SERVER) { + if ((GetCommandFlags(cp.cmd) & CMD_SPECTATOR) == 0 && !IsValidCompanyID(cp.company) && ci->client_id != CLIENT_ID_SERVER) { IConsolePrintF(CC_ERROR, "WARNING: spectator issueing command from client %d (IP: %s), kicking...", ci->client_id, GetClientIP(ci)); SEND_COMMAND(PACKET_SERVER_ERROR)(cs, NETWORK_ERROR_KICKED); return; |