From ae70642f14dec11337362503ed62aa6330055a64 Mon Sep 17 00:00:00 2001 From: Marco Hladik Date: Wed, 6 Jan 2021 12:38:35 +0100 Subject: [PATCH] Server: Disallow the 'pause' command to any game with more than 1 client-slot. --- src/server/entry.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/server/entry.c b/src/server/entry.c index 232409a9..c9e3d1ad 100644 --- a/src/server/entry.c +++ b/src/server/entry.c @@ -322,9 +322,11 @@ float ConsoleCmd(string cmd) float SV_ShouldPause(float newstatus) { - if (serverkeyfloat("background") == 1) { + if (serverkeyfloat("background") == 1) + return FALSE; + + if (cvar("sv_playerslots") > 1) return FALSE; - } return newstatus; }