summaryrefslogtreecommitdiff
path: root/apps/plugins/doom/w_wad.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/doom/w_wad.c')
-rw-r--r--apps/plugins/doom/w_wad.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/plugins/doom/w_wad.c b/apps/plugins/doom/w_wad.c
index 4bd3807191..18da216dcf 100644
--- a/apps/plugins/doom/w_wad.c
+++ b/apps/plugins/doom/w_wad.c
@@ -494,7 +494,7 @@ int W_LumpLength (int lump)
494// Loads the lump into the given buffer, 494// Loads the lump into the given buffer,
495// which must be >= W_LumpLength(). 495// which must be >= W_LumpLength().
496// 496//
497 497#undef DEBUGCACHE
498void W_ReadLump(int lump, void *dest) 498void W_ReadLump(int lump, void *dest)
499{ 499{
500 lumpinfo_t *l = lumpinfo + lump; 500 lumpinfo_t *l = lumpinfo + lump;
@@ -512,6 +512,11 @@ void W_ReadLump(int lump, void *dest)
512 { 512 {
513 int c; 513 int c;
514 514
515#if DEBUGCACHE
516 if(gamestate==GS_LEVEL)
517 printf("Loading %s\n", lumpinfo[lump].name);
518#endif
519
515 // killough 1/31/98: Reload hack (-wart) removed 520 // killough 1/31/98: Reload hack (-wart) removed
516 521
517 lseek(l->handle, l->position, SEEK_SET); 522 lseek(l->handle, l->position, SEEK_SET);