From c244cfc937aedafd0458e10cc6b1ef429dcc29d3 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Thu, 28 Dec 2023 22:39:47 +0300 Subject: [PATCH] engine: do not save configs when we closing because of the errors --- engine/common/host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/common/host.c b/engine/common/host.c index b31661d4..c19f5906 100644 --- a/engine/common/host.c +++ b/engine/common/host.c @@ -1349,7 +1349,7 @@ void EXPORT Host_Shutdown( void ) if( !host.change_game ) Q_strncpy( host.finalmsg, "Server shutdown", sizeof( host.finalmsg )); #if !XASH_DEDICATED - if( host.type == HOST_NORMAL ) + if( host.type == HOST_NORMAL && host.status != HOST_ERR_FATAL ) Host_WriteConfig(); #endif