DEADSOFTWARE

game: g_FatalError actually ends the game
authorfgsfds <pvt.fgsfds@gmail.com>
Fri, 24 Apr 2020 18:40:56 +0000 (21:40 +0300)
committerfgsfds <pvt.fgsfds@gmail.com>
Fri, 24 Apr 2020 18:40:56 +0000 (21:40 +0300)
src/game/g_game.pas

index 9112b7f9eb91eb0b6e49942a72038f800961d8d6..82d2981743c307471a549bd6a6e8ee65db137f58 100644 (file)
@@ -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);