From 727ffeedc90133e61cad00334a10e8d35526c287 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Wed, 21 Jan 2009 10:46:21 +0000 Subject: (svn r15194) -Fix: Don't count dedicated server as a spectator --- src/network/network.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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; } -- cgit v1.2.3-70-g09d2