From: fgsfds Date: Fri, 24 Apr 2020 18:40:56 +0000 (+0300) Subject: game: g_FatalError actually ends the game X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=3ba6ebd7f98df7b3e917920572caba1252c0c537;p=d2df-sdl.git game: g_FatalError actually ends the game --- diff --git a/src/game/g_game.pas b/src/game/g_game.pas index 9112b7f..82d2981 100644 --- a/src/game/g_game.pas +++ b/src/game/g_game.pas @@ -4223,6 +4223,7 @@ begin e_WriteLog(Format(_lc[I_FATAL_ERROR], [Text]), TMsgType.Warning); gExit := EXIT_SIMPLE; + if gGameOn then EndGame; end; procedure g_SimpleError(Text: String);