mirror of https://github.com/OpenTTD/OpenTTD
(svn r15194) -Fix: Don't count dedicated server as a spectator
parent
c8a7135d6c
commit
727ffeedc9
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue