Browse Source

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

pull/2/head
Alibek Omarov 6 months ago
parent
commit
c244cfc937
  1. 2
      engine/common/host.c

2
engine/common/host.c

@ -1349,7 +1349,7 @@ void EXPORT Host_Shutdown( void ) @@ -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

Loading…
Cancel
Save