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 3b8a629..8e47638 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;
 }
 
 /*