remove redundant wadfile loop within wadfile loop for ANIMDEFS code

This commit is contained in:
Monster Iestyn 2018-11-27 23:05:33 +00:00
parent cd57be640c
commit cb53bc8afe

View file

@ -279,8 +279,6 @@ void P_InitPicAnims(void)
Z_Free(animatedLump); Z_Free(animatedLump);
} }
for (w = numwadfiles-1; w >= 0; w--)
{
// Find ANIMDEFS lump in the WAD // Find ANIMDEFS lump in the WAD
animdefsLumpNum = W_CheckNumForNamePwad("ANIMDEFS", w, 0); animdefsLumpNum = W_CheckNumForNamePwad("ANIMDEFS", w, 0);
while (animdefsLumpNum != INT16_MAX) while (animdefsLumpNum != INT16_MAX)
@ -289,7 +287,6 @@ void P_InitPicAnims(void)
animdefsLumpNum = W_CheckNumForNamePwad("ANIMDEFS", (UINT16)w, animdefsLumpNum + 1); animdefsLumpNum = W_CheckNumForNamePwad("ANIMDEFS", (UINT16)w, animdefsLumpNum + 1);
} }
} }
}
// Define the last one // Define the last one
animdefs[maxanims].istexture = -1; animdefs[maxanims].istexture = -1;
strncpy(animdefs[maxanims].endname, "", 9); strncpy(animdefs[maxanims].endname, "", 9);