From: terencehill Date: Fri, 24 Jan 2014 19:07:34 +0000 (+0100) Subject: Also count players scheduled to join the next round when deciding whether server... X-Git-Tag: xonotic-v0.8.0~126^2~25 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=33d724d0edd6179779ce41d2acce12fcf92b5002;p=xonotic%2Fxonotic-data.pk3dir.git Also count players scheduled to join the next round when deciding whether server reached maximum number of active players (g_maxplayers) --- diff --git a/qcsrc/server/cl_client.qc b/qcsrc/server/cl_client.qc index a60461bca..457cfa197 100644 --- a/qcsrc/server/cl_client.qc +++ b/qcsrc/server/cl_client.qc @@ -1992,7 +1992,7 @@ float nJoinAllowed(entity ignore) { float currentlyPlaying = 0; FOR_EACH_REALCLIENT(e) - if(IS_PLAYER(e) || e.caplayer == 1) + if(IS_PLAYER(e) || e.caplayer) currentlyPlaying += 1; if(currentlyPlaying < autocvar_g_maxplayers)