summaryrefslogtreecommitdiff
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
commit727ffeedc90133e61cad00334a10e8d35526c287 (patch)
treecbae5bb98990ec79934296dd9e2bf654b0fb1b75
parentc8a7135d6c83cb723f2f18f7f37e0f0bbe156f25 (diff)
downloadopenttd-727ffeedc90133e61cad00334a10e8d35526c287.tar.xz
(svn r15194) -Fix: Don't count dedicated server as a spectator
-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;
}