Server: Disallow the 'pause' command to any game with more than 1 client-slot.

This commit is contained in:
Marco Cawthorne 2021-01-06 12:38:35 +01:00
parent 507a10eec5
commit ae70642f14
1 changed files with 4 additions and 2 deletions

View File

@ -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;
}