]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
change the isserver builtin to just return sv.active rather than
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 27 May 2014 21:23:33 +0000 (21:23 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 27 May 2014 21:23:33 +0000 (21:23 +0000)
checking maxclients and dedicated

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12078 d7cf8633-e32d-0410-b094-e92efae38249

prvm_cmds.c

index 3b8a629d40067aa1380f593c6884a442548cca11..8e476383edd943c0696027f96c9750817fe497d2 100644 (file)
@@ -2793,7 +2793,7 @@ void VM_isserver(prvm_prog_t *prog)
 {
        VM_SAFEPARMCOUNT(0,VM_serverstate);
 
-       PRVM_G_FLOAT(OFS_RETURN) = sv.active && (svs.maxclients > 1 || cls.state == ca_dedicated);
+       PRVM_G_FLOAT(OFS_RETURN) = sv.active;
 }
 
 /*