- fixed: Changed IWAD_FILENUM to a dynamic lookup.
This commit is contained in:
parent
ffa11dec54
commit
765646ee1c
13 changed files with 30 additions and 25 deletions
|
|
@ -2431,12 +2431,12 @@ int D_LoadDehLumps(DehLumpSource source)
|
|||
{
|
||||
const int filenum = Wads.GetLumpFile(lumpnum);
|
||||
|
||||
if (FromIWAD == source && filenum > FWadCollection::IWAD_FILENUM)
|
||||
if (FromIWAD == source && filenum > Wads.GetIwadNum())
|
||||
{
|
||||
// No more DEHACKED lumps in IWAD
|
||||
break;
|
||||
}
|
||||
else if (FromPWADs == source && filenum <= FWadCollection::IWAD_FILENUM)
|
||||
else if (FromPWADs == source && filenum <= Wads.GetIwadNum())
|
||||
{
|
||||
// Skip DEHACKED lumps from IWAD
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue