Removed lame debug code which didn't even check return codes.

This commit is contained in:
Marcus Sundberg 2000-03-19 15:20:09 +00:00
parent 289fb16e4e
commit c7830d7118

View file

@ -132,8 +132,6 @@ void W_LoadWadFile (char *filename)
unsigned i;
int infotableofs;
FILE *f = fopen("debug.log", "w");
wad_base = COM_LoadHunkFile (filename);
if (!wad_base)
Sys_Error ("W_LoadWadFile: couldn't load %s", filename);
@ -156,13 +154,9 @@ void W_LoadWadFile (char *filename)
lump_p->filepos = LittleLong(lump_p->filepos);
lump_p->size = LittleLong(lump_p->size);
W_CleanupName (lump_p->name, lump_p->name);
fprintf(f, "%i: %s\n", i, lump_p->name);
if (lump_p->type == TYP_QPIC)
SwapPic ( (qpic_t *)(wad_base + lump_p->filepos));
}
fclose(f);
}