From d041b2aa275332163ed6940922b5c31e14896de6 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Tue, 26 Mar 2024 17:15:34 +0300 Subject: [PATCH] engine: fix error_on_exit data type --- engine/common/system.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/common/system.c b/engine/common/system.c index e852fc34..47828760 100644 --- a/engine/common/system.c +++ b/engine/common/system.c @@ -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 );