Skip to content

Commit

Permalink
Fix flat / texture animation sync
Browse files Browse the repository at this point in the history
  • Loading branch information
kraflab committed Dec 8, 2022
1 parent e59c639 commit d63bc13
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions prboom2/src/p_spec.c
Expand Up @@ -3074,13 +3074,13 @@ void P_UpdateSpecials (void)
// Animate flats and textures globally
for (anim = anims ; anim < lastanim ; anim++)
{
for (i=anim->basepic ; i<anim->basepic+anim->numpics ; i++)
for (i = 0; i < anim->numpics; ++i)
{
pic = anim->basepic + ( (leveltime/anim->speed + i)%anim->numpics );
pic = anim->basepic + ((leveltime / anim->speed + i) % anim->numpics);
if (anim->istexture)
texturetranslation[i] = pic;
texturetranslation[anim->basepic + i] = pic;
else
flattranslation[i] = pic;
flattranslation[anim->basepic + i] = pic;
}
}
}
Expand Down

0 comments on commit d63bc13

Please sign in to comment.