Skip to content

Commit

Permalink
engine: server: first check for dedicated server in SV_IsSimulating, …
Browse files Browse the repository at this point in the history
…as CL_Active()/CL_IsInConsole() don't make sense if we're running dedicated server already
  • Loading branch information
a1batross committed Jul 10, 2024
1 parent 708c691 commit c16abc0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions engine/server/sv_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -567,16 +567,16 @@ 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( ))
return false;
return true; // force simulating for background map
}

if( Host_IsDedicated() )
return true; // always active for dedicated servers

if( !SV_HasActivePlayers( ))
return false;

Expand Down

0 comments on commit c16abc0

Please sign in to comment.