2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-26 03:39:16 +01:00

engine: do not save configs when we closing because of the errors

This commit is contained in:
Alibek Omarov 2023-12-28 22:39:47 +03:00
parent 520fc33394
commit c244cfc937

View File

@ -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