diff options
author | Darkvater <darkvater@openttd.org> | 2006-12-26 17:36:18 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-12-26 17:36:18 +0000 |
commit | 073e0eb3c9148d6dd8b2c9ce788843b8180351cb (patch) | |
tree | 8dae47833ded5c522ac7a89f69f10fc0c2530e90 /newgrf_config.c | |
parent | 2e0bbe540383c96f4356dd75e70bb1fa5c8e95be (diff) | |
download | openttd-073e0eb3c9148d6dd8b2c9ce788843b8180351cb.tar.xz |
(svn r7565) -Codechange: Rework DEBUG functionality. Look for appropiate debugging levels to
use in debug.h. grfmsg() is now used as a specific debug-function for grf.
Diffstat (limited to 'newgrf_config.c')
-rw-r--r-- | newgrf_config.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/newgrf_config.c b/newgrf_config.c index 6b74c99b2..f07e869e9 100644 --- a/newgrf_config.c +++ b/newgrf_config.c @@ -162,7 +162,7 @@ bool IsGoodGRFConfigList(void) res = false; } else { - DEBUG(grf, 1) ("[GRF] Loading GRF %08X from %s", BSWAP32(c->grfid), f->filename); + DEBUG(grf, 1, "Loading GRF %08X from '%s'", BSWAP32(c->grfid), f->filename); /* The filename could be the filename as in the savegame. As we need * to load the GRF here, we need the correct filename, so overwrite that * in any case and set the name and info when it is not set already. @@ -257,9 +257,9 @@ void ScanNewGRFFiles(void) ClearGRFConfigList(&_all_grfs); - DEBUG(grf, 1) ("[GRF] Scanning for NewGRFs"); + DEBUG(grf, 1, "Scanning for NewGRFs"); num = ScanPath(_paths.data_dir); - DEBUG(grf, 1) ("[GRF] Scan complete, found %d files", num); + DEBUG(grf, 1, "Scan complete, found %d files", num); } @@ -406,3 +406,4 @@ const ChunkHandler _newgrf_chunk_handlers[] = { { 'NGRF', Save_NGRF, Load_NGRF, CH_ARRAY | CH_LAST } }; + |