Server: Disallow the 'pause' command to any game with more than 1 client-slot.
This commit is contained in:
parent
507a10eec5
commit
ae70642f14
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue