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

View File

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