diff options
author | darkvater <darkvater@openttd.org> | 2004-08-16 14:48:35 +0000 |
---|---|---|
committer | darkvater <darkvater@openttd.org> | 2004-08-16 14:48:35 +0000 |
commit | 68c9b7c3ad902784c07b0d76c81c87e073c826b3 (patch) | |
tree | 7adb6f3ca0f68bd8744d5835a42dd6919a93f4c2 /grfspecial.c | |
parent | d33c833a82808c256562b7f3a7e07251613d14ca (diff) | |
download | openttd-68c9b7c3ad902784c07b0d76c81c87e073c826b3.tar.xz |
(svn r66) -Fix Station list updated on station deletion/station rename
-Changed debug messages to comply with DEBUG(name, level) heuristics
Diffstat (limited to 'grfspecial.c')
-rw-r--r-- | grfspecial.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/grfspecial.c b/grfspecial.c index 69a905be0..47f7bc31c 100644 --- a/grfspecial.c +++ b/grfspecial.c @@ -39,14 +39,13 @@ enum grfmsg_severity { static void CDECL grfmsg(enum grfmsg_severity severity, const char *str, ...) { static const char * const severitystr[4] = { "Notice", "Warning", "Error", "Fatal" }; + char buf[1024]; va_list va; - if(_debug_misc_level==0) return; va_start(va, str); - fprintf(stderr, "[%s][%s] ", _cur_grffile, severitystr[severity]); - vfprintf(stderr, str, va); + vsprintf(buf, str, va); va_end(va); - fprintf(stderr, "\n"); + DEBUG(grf, 1) ("[%s][%s] %s", _cur_grffile, severitystr[severity], buf); } static byte INLINE grf_load_byte(byte **buf) { |