engine: fix error_on_exit data type

This commit is contained in:
Alibek Omarov 2024-03-26 17:15:34 +03:00
parent f6d489e038
commit d041b2aa27
1 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ GNU General Public License for more details.
#include "library.h"
#include "whereami.h"
qboolean error_on_exit = false; // arg for exit();
static int error_on_exit = 0; // arg for exit();
/*
================
@ -430,7 +430,7 @@ void Sys_Error( const char *error, ... )
// make sure that console received last message
if( host.change_game ) Sys_Sleep( 200 );
error_on_exit = true;
error_on_exit = 1;
host.status = HOST_ERR_FATAL;
va_start( argptr, error );
Q_vsnprintf( text, MAX_PRINT_MSG, error, argptr );