diff options
author | peter1138 <peter1138@openttd.org> | 2009-01-21 10:46:21 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2009-01-21 10:46:21 +0000 |
commit | 727ffeedc90133e61cad00334a10e8d35526c287 (patch) | |
tree | cbae5bb98990ec79934296dd9e2bf654b0fb1b75 | |
parent | c8a7135d6c83cb723f2f18f7f37e0f0bbe156f25 (diff) | |
download | openttd-727ffeedc90133e61cad00334a10e8d35526c287.tar.xz |
(svn r15194) -Fix: Don't count dedicated server as a spectator
-rw-r--r-- | src/network/network.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/network/network.cpp b/src/network/network.cpp index 89131156a..4fbad7535 100644 --- a/src/network/network.cpp +++ b/src/network/network.cpp @@ -176,6 +176,9 @@ byte NetworkSpectatorCount() if (ci->client_playas == COMPANY_SPECTATOR) count++; } + /* Don't count a dedicated server as spectator */ + if (_network_dedicated) count--; + return count; } |