summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2009-01-21 10:46:21 +0000
committerpeter1138 <peter1138@openttd.org>2009-01-21 10:46:21 +0000
commit00aa88040e296788a6abe3fe759f4f3733ba48ab (patch)
treecbae5bb98990ec79934296dd9e2bf654b0fb1b75 /src
parentd3f428e67769fc13187d9b413257f32dfba44cdc (diff)
downloadopenttd-00aa88040e296788a6abe3fe759f4f3733ba48ab.tar.xz
(svn r15194) -Fix: Don't count dedicated server as a spectator
Diffstat (limited to 'src')
-rw-r--r--src/network/network.cpp3
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;
}