Fixed a few cases when IWAD was checked by hardcoded index
This commit is contained in:
parent
13584b9a9d
commit
724d711d1f
4 changed files with 4 additions and 4 deletions
|
|
@ -87,7 +87,7 @@ void AdjustSpriteOffsets()
|
|||
|
||||
for (int i = 0; i < numtex; i++)
|
||||
{
|
||||
if (Wads.GetLumpFile(i) > 1) break; // we are past the IWAD
|
||||
if (Wads.GetLumpFile(i) > Wads.GetIwadNum()) break; // we are past the IWAD
|
||||
if (Wads.GetLumpNamespace(i) == ns_sprites && Wads.GetLumpFile(i) == Wads.GetIwadNum())
|
||||
{
|
||||
char str[9];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue