- 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:
parent
92e6a72da1
commit
d0e7e574e1
3 changed files with 10 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue