engine: server: log: fix log off command not disabling logging to console (fixes #1340)

This commit is contained in:
jeefo 2023-06-11 13:14:55 +03:00 committed by Alibek Omarov
parent 873ce0ce48
commit 699f3579fe
1 changed files with 3 additions and 0 deletions

View File

@ -225,7 +225,10 @@ void SV_ServerLog_f( void )
if( !Q_stricmp( Cmd_Argv( 1 ), "off" ))
{
if( svs.log.active )
{
Log_Close();
svs.log.active = false;
}
}
else if( !Q_stricmp( Cmd_Argv( 1 ), "on" ))
{