mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-22 11:51:17 +00:00
Removed lame debug code which didn't even check return codes.
This commit is contained in:
parent
289fb16e4e
commit
c7830d7118
1 changed files with 14 additions and 20 deletions
|
@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue