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 /gfxinit.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 'gfxinit.c')
-rw-r--r-- | gfxinit.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -54,7 +54,7 @@ static uint LoadGrfFile(const char* filename, uint load_index, int file_index) FioOpenFile(file_index, filename); - DEBUG(spritecache, 2) ("Reading grf-file ``%s''", filename); + DEBUG(sprite, 2, "Reading grf-file '%s'", filename); while (LoadNextSprite(load_index, file_index)) { load_index++; @@ -62,7 +62,7 @@ static uint LoadGrfFile(const char* filename, uint load_index, int file_index) error("Too many sprites. Recompile with higher MAX_SPRITES value or remove some custom GRF files."); } } - DEBUG(spritecache, 2) ("Currently %i sprites are loaded", load_index); + DEBUG(sprite, 2, "Currently %i sprites are loaded", load_index); return load_index - load_index_org; } @@ -74,7 +74,7 @@ static void LoadGrfIndexed(const char* filename, const SpriteID* index_tbl, int FioOpenFile(file_index, filename); - DEBUG(spritecache, 2) ("Reading indexed grf-file ``%s''", filename); + DEBUG(sprite, 2, "Reading indexed grf-file '%s'", filename); while ((start = *index_tbl++) != END) { uint end = *index_tbl++; @@ -382,7 +382,7 @@ static void LoadSpriteTables(void) void GfxLoadSprites(void) { - DEBUG(spritecache, 1) ("Loading sprite set %d.", _opt.landscape); + DEBUG(sprite, 2, "Loading sprite set %d", _opt.landscape); GfxInitSpriteMem(); LoadSpriteTables(); |