summaryrefslogtreecommitdiff
path: root/gfxinit.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-12-26 17:36:18 +0000
committerDarkvater <darkvater@openttd.org>2006-12-26 17:36:18 +0000
commit073e0eb3c9148d6dd8b2c9ce788843b8180351cb (patch)
tree8dae47833ded5c522ac7a89f69f10fc0c2530e90 /gfxinit.c
parent2e0bbe540383c96f4356dd75e70bb1fa5c8e95be (diff)
downloadopenttd-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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gfxinit.c b/gfxinit.c
index 1ac0a30d6..ae9fb3cb8 100644
--- a/gfxinit.c
+++ b/gfxinit.c
@@ -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();