From fe9fa4139094a17309ff4cba71631e1617d4ad07 Mon Sep 17 00:00:00 2001 From: havoc Date: Tue, 27 May 2014 21:23:33 +0000 Subject: [PATCH] change the isserver builtin to just return sv.active rather than checking maxclients and dedicated git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12078 d7cf8633-e32d-0410-b094-e92efae38249 --- prvm_cmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prvm_cmds.c b/prvm_cmds.c index 3b8a629d..8e476383 100644 --- a/prvm_cmds.c +++ b/prvm_cmds.c @@ -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; } /* -- 2.39.2