- animateoffs cleanup and consolidation

This was rewritten based on specs alone - it still doesn’t look that different due to its simplicity.
This commit is contained in:
Christoph Oelckers 2022-08-05 18:47:35 +02:00
parent 83c0ad55f2
commit 4f2170655c
15 changed files with 68 additions and 140 deletions

View file

@ -56,8 +56,7 @@ void hud_drawsprite(double sx, double sy, double sz, double a, int picnum, int d
alpha *= (dastat & RS_TRANS1)? glblend[0].def[!!(dastat & RS_TRANS2)].alpha : 1.;
int palid = TRANSLATION(Translation_Remap + curbasepal, dapalnum);
if (picanm[picnum].sf & PICANM_ANIMTYPE_MASK)
picnum += animateoffs(picnum, 0);
tileUpdatePicnum(&picnum);
auto tex = tileGetTexture(picnum);