(svn r15194) -Fix: Don't count dedicated server as a spectator

This commit is contained in:
peter1138
2009-01-21 10:46:21 +00:00
parent d3f428e677
commit 00aa88040e

View File

@@ -176,6 +176,9 @@ byte NetworkSpectatorCount()
if (ci->client_playas == COMPANY_SPECTATOR) count++; if (ci->client_playas == COMPANY_SPECTATOR) count++;
} }
/* Don't count a dedicated server as spectator */
if (_network_dedicated) count--;
return count; return count;
} }