fixed logging fatal errors
[rocksndiamonds.git] / src / libgame / misc.c
index 31adce34c6a1eec5f5ace6f68870628128e45b20..eb2f8f0c54476a281939448b3a9bdfe5aba8e984 100644 (file)
@@ -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);