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 | 00aa88040e296788a6abe3fe759f4f3733ba48ab (patch) | |
tree | cbae5bb98990ec79934296dd9e2bf654b0fb1b75 /src | |
parent | d3f428e67769fc13187d9b413257f32dfba44cdc (diff) | |
download | openttd-00aa88040e296788a6abe3fe759f4f3733ba48ab.tar.xz |
(svn r15194) -Fix: Don't count dedicated server as a spectator
Diffstat (limited to 'src')
-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; } |