- 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
parent 92e6a72da1
commit d0e7e574e1
3 changed files with 10 additions and 0 deletions

View file

@ -1,3 +1,7 @@
February 3, 2009
- 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.
January 18, 2009 - February 3, 2009 (Changes by Graf Zahl)
- moved all code related to global ACS variables to p_acs.cpp where it belongs.
- fixed: The nextmap and nextsecret CCMDs need to call G_DeferedInitNew instead of G_InitNew.

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);

View file

@ -474,7 +474,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);
}