engine: always include reason to server shutdown

This commit is contained in:
Alibek Omarov
2024-12-26 02:13:13 +03:00
parent fd2b7e9197
commit 48bdd4238e
6 changed files with 7 additions and 11 deletions
+1 -1
View File
@@ -846,7 +846,7 @@ Kick everyone off, possibly in preparation for a new game
*/
static void SV_KillServer_f( void )
{
Host_ShutdownServer();
SV_Shutdown( "Server was killed due to shutdownserver command\n" );
}
/*
+2 -1
View File
@@ -805,7 +805,8 @@ static void SV_SetupClients( void )
if( !changed_maxclients ) return; // nothing to change
// if clients count was changed we need to run full shutdown procedure
if( svs.maxclients ) Host_ShutdownServer();
if( svs.maxclients )
SV_Shutdown( "Server was killed due to maxclients change\n" );
// copy the actual value from cvar
svs.maxclients = (int)sv_maxclients.value;