]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Also count players scheduled to join the next round when deciding whether server...
authorterencehill <piuntn@gmail.com>
Fri, 24 Jan 2014 19:07:34 +0000 (20:07 +0100)
committerterencehill <piuntn@gmail.com>
Fri, 24 Jan 2014 19:07:34 +0000 (20:07 +0100)
qcsrc/server/cl_client.qc

index a60461bcaec7a60bb0b760ecb2bbdecb23a85b54..457cfa19752c6b4382984a30e3ce221accb829d0 100644 (file)
@@ -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)