From 50f09a03c47ff45b59b9790f2cf172f0b534bfb6 Mon Sep 17 00:00:00 2001 From: Alug Date: Thu, 5 Feb 2026 21:00:54 +0100 Subject: [PATCH] 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 --- src/p_spec.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/p_spec.c b/src/p_spec.c index 1965967e1..d0a31b048 100644 --- a/src/p_spec.c +++ b/src/p_spec.c @@ -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; + } + } }