- Added a fflush() call after the logfile write in I_FatalError so that the

error text is visible in the file while the error dialog is displayed.


SVN r1396 (trunk)
This commit is contained in:
Randy Heit 2009-02-04 01:23:47 +00:00
commit d0e7e574e1
3 changed files with 10 additions and 0 deletions

View file

@ -254,7 +254,10 @@ void STACK_ARGS I_FatalError (const char *error, ...)
// Record error to log (if logging)
if (Logfile)
{
fprintf (Logfile, "\n**** DIED WITH FATAL ERROR:\n%s\n", errortext);
fflush (Logfile);
}
// throw CFatalError (errortext);
fprintf (stderr, "%s\n", errortext);
exit (-1);