only do the anim texture maths if we need it

idk why but this showed up during profiling
best would be just to redo the whole system since it sucks lol
This commit is contained in:
Alug committed 2026-02-05 21:00:54 +01:00
1 parent 33b1e0885d
commit 50f09a03c4
1 file changed
+4 -1
+4 -1
View File
@@ -4532,9 +4532,12 @@ void P_UpdateSpecials(void)
{
for (i = 0; i < anim->numpics; i++)
{
pic = anim->basepic + ((leveltime/anim->speed + i) % anim->numpics);
if (anim->istexture)
{
pic = anim->basepic + ((leveltime/anim->speed + i) % anim->numpics);
texturetranslation[anim->basepic+i] = pic;
}
}
}