Merge branch 'texture-anims-fix' into 'next'

Texture anims fix

See issue #20

See merge request !34
This commit is contained in:
Inuyasha 2016-01-24 06:32:52 -05:00
commit 732c1a87f1

View file

@ -4671,11 +4671,11 @@ void P_UpdateSpecials(void)
// ANIMATE TEXTURES
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);
if (anim->istexture)
texturetranslation[i] = pic;
texturetranslation[anim->basepic+i] = pic;
}
}