Let server physics simulate even when there is no players(GoldSrc behaviour)

This commit is contained in:
Alibek Omarov 2018-05-03 17:53:49 +03:00
parent 46a3e729db
commit ec6bfa2421
1 changed files with 3 additions and 3 deletions

View File

@ -529,12 +529,12 @@ qboolean SV_IsSimulating( void )
return true; // force simulating for background map
}
if( !SV_HasActivePlayers( ))
return false;
if( Host_IsDedicated() )
return true; // always active for dedicated servers
if( !SV_HasActivePlayers( ))
return false;
// allow to freeze everything in singleplayer
if( svs.maxclients <= 1 && sv.playersonly )
return false;