mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-27 21:01:04 +00:00
remove redundant wadfile loop within wadfile loop for ANIMDEFS code
This commit is contained in:
parent
cd57be640c
commit
cb53bc8afe
1 changed files with 5 additions and 8 deletions
13
src/p_spec.c
13
src/p_spec.c
|
@ -279,15 +279,12 @@ void P_InitPicAnims(void)
|
||||||
Z_Free(animatedLump);
|
Z_Free(animatedLump);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (w = numwadfiles-1; w >= 0; w--)
|
// Find ANIMDEFS lump in the WAD
|
||||||
|
animdefsLumpNum = W_CheckNumForNamePwad("ANIMDEFS", w, 0);
|
||||||
|
while (animdefsLumpNum != INT16_MAX)
|
||||||
{
|
{
|
||||||
// Find ANIMDEFS lump in the WAD
|
P_ParseANIMDEFSLump(w, animdefsLumpNum);
|
||||||
animdefsLumpNum = W_CheckNumForNamePwad("ANIMDEFS", w, 0);
|
animdefsLumpNum = W_CheckNumForNamePwad("ANIMDEFS", (UINT16)w, animdefsLumpNum + 1);
|
||||||
while (animdefsLumpNum != INT16_MAX)
|
|
||||||
{
|
|
||||||
P_ParseANIMDEFSLump(w, animdefsLumpNum);
|
|
||||||
animdefsLumpNum = W_CheckNumForNamePwad("ANIMDEFS", (UINT16)w, animdefsLumpNum + 1);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Define the last one
|
// Define the last one
|
||||||
|
|
Loading…
Reference in a new issue