mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
engine: server: first check for dedicated server in SV_IsSimulating, as CL_Active()/CL_IsInConsole() don't make sense if we're running dedicated server already
This commit is contained in:
@@ -567,6 +567,9 @@ SV_IsSimulating
|
||||
*/
|
||||
static qboolean SV_IsSimulating( void )
|
||||
{
|
||||
if( Host_IsDedicated( ))
|
||||
return true; // always active for dedicated servers
|
||||
|
||||
if( sv.background && SV_Active() && CL_Active())
|
||||
{
|
||||
if( CL_IsInConsole( ))
|
||||
@@ -574,9 +577,6 @@ static qboolean SV_IsSimulating( void )
|
||||
return true; // force simulating for background map
|
||||
}
|
||||
|
||||
if( Host_IsDedicated() )
|
||||
return true; // always active for dedicated servers
|
||||
|
||||
if( !SV_HasActivePlayers( ))
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user