#include "wad.h"
-void SwapPic (qpic_t *pic);
-
-
/*
==================
W_CleanupName
out[i] = 0;
}
-void *W_GetLumpName(const char *name)
+unsigned char *W_GetLumpName(const char *name)
{
int i;
fs_offset_t filesize;
lump->filepos = LittleLong(lump->filepos);
lump->size = LittleLong(lump->size);
W_CleanupName (lump->name, lump->name);
- if (lump->type == TYP_QPIC)
- SwapPic ( (qpic_t *)(wad_base + lump->filepos));
}
}
}
for (lump = wad_lumps, i = 0;i < wad_numlumps;i++, lump++)
if (!strcmp(clean, lump->name))
- return (void *)(wad_base + lump->filepos);
+ return (wad_base + lump->filepos);
if (wad_base)
Con_DPrintf("W_GetLumpByName(\"%s\"): couldn't find file in gfx.wad\n", name);
=============================================================================
*/
-void SwapPic (qpic_t *pic)
-{
- pic->width = LittleLong(pic->width);
- pic->height = LittleLong(pic->height);
-}
-
// LordHavoc: added alternate WAD2/WAD3 system for HalfLife texture wads
#define TEXWAD_MAXIMAGES 16384
typedef struct texwadlump_s