diff --git a/doomdef.h b/doomdef.h index 3c1d99e33..983489a51 100644 --- a/doomdef.h +++ b/doomdef.h @@ -688,7 +688,6 @@ int W_Push (void); int W_Pop (void); void W_OpenPWAD (wadinfo_t *wad, void *ptr); void W_ReadPWAD(void); -void W_SetPWAD (wadinfo_t *wad, void *lumpinfo); lumpinfo_t *W_GetLumpInfo (int lump); int W_CheckNumForName (const char *name); diff --git a/w_wad.c b/w_wad.c index b59421484..f1d0f04c8 100644 --- a/w_wad.c +++ b/w_wad.c @@ -10,7 +10,7 @@ /* GLOBALS */ /*============= */ -#define MAXWADS 3 /* IWAD + CD PWAD + virtual CD PWAD */ +#define MAXWADS 2 /* IWAD + CD PWAD + virtual CD PWAD */ typedef struct { @@ -139,23 +139,6 @@ void W_Init (void) W_InitCDPWAD(); } -/* -==================== -= -= W_SetPWAD -= -==================== -*/ -void W_SetPWAD (wadinfo_t *wadi, void *lumpinfo) -{ - wadfile_t *wad; - wad = &wadfile[wadnum]; - wad->cdlength = wadfile[1].cdlength; - wad->cdoffset = wadfile[1].cdoffset; - wad->lumpinfo = lumpinfo; - wad->numlumps = wadi->numlumps; -} - /* ==================== =