projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fixed logging fatal errors
[rocksndiamonds.git]
/
src
/
libgame
/
misc.c
diff --git
a/src/libgame/misc.c
b/src/libgame/misc.c
index 31adce34c6a1eec5f5ace6f68870628128e45b20..eb2f8f0c54476a281939448b3a9bdfe5aba8e984 100644
(file)
--- a/
src/libgame/misc.c
+++ b/
src/libgame/misc.c
@@
-1005,6
+1005,9
@@
void Error(int mode, char *format, ...)
if (mode & ERR_WARN)
fprintf_nonewline(program.error_file, "warning: ");
+ if (mode & ERR_EXIT)
+ fprintf_nonewline(program.error_file, "fatal error: ");
+
va_start(ap, format);
vfprintf_newline(program.error_file, format, ap);
va_end(ap);