mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-22 19:38:06 -04:00
synchronize animated flats (#736)
This commit is contained in:
parent
ed837b6c9b
commit
669d23ed04
@ -2299,17 +2299,17 @@ 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 );
|
||||
if (anim->istexture)
|
||||
texturetranslation[i] = pic;
|
||||
texturetranslation[anim->basepic + i] = pic;
|
||||
else
|
||||
{
|
||||
flattranslation[i] = pic;
|
||||
flattranslation[anim->basepic + i] = pic;
|
||||
// [crispy] add support for SMMU swirling flats
|
||||
if (anim->speed > 65535 || anim->numpics == 1 || r_swirl)
|
||||
flattranslation[i] = -1;
|
||||
flattranslation[anim->basepic + i] = -1;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user