Handle things in a more sensible way
This commit is contained in:
parent
f34ed24132
commit
84755ec171
|
@ -106,7 +106,7 @@ static UINT16 lumpnumcacheindex = 0;
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
// GLOBALS
|
// GLOBALS
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
UINT16 numwadfiles; // number of active wadfiles
|
UINT16 numwadfiles = 0; // number of active wadfiles
|
||||||
wadfile_t *wadfiles[MAX_WADFILES]; // 0 to numwadfiles-1 are valid
|
wadfile_t *wadfiles[MAX_WADFILES]; // 0 to numwadfiles-1 are valid
|
||||||
|
|
||||||
// W_Shutdown
|
// W_Shutdown
|
||||||
|
@ -859,10 +859,6 @@ INT32 W_InitMultipleFiles(char **filenames)
|
||||||
{
|
{
|
||||||
INT32 rc = 1;
|
INT32 rc = 1;
|
||||||
|
|
||||||
// open all the files, load headers, and count lumps
|
|
||||||
if (!numwadfiles)
|
|
||||||
numwadfiles = 0;
|
|
||||||
|
|
||||||
// will be realloced as lumps are added
|
// will be realloced as lumps are added
|
||||||
for (; *filenames; filenames++)
|
for (; *filenames; filenames++)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue