- do not call tileUpdatePicnum for voxelized tsprites.

This commit is contained in:
Christoph Oelckers 2022-02-20 23:36:04 +01:00
parent 2f55d2a1c7
commit cc6629a95f

View file

@ -284,7 +284,8 @@ void HWDrawInfo::DispatchSprites()
actor->spr.cstat2 |= CSTAT2_SPRITE_MAPPED;
tileUpdatePicnum(&tilenum, (actor->GetIndex() & 16383) + 32768, 0);
if ((tspr->cstat & CSTAT_SPRITE_ALIGNMENT_MASK) != CSTAT_SPRITE_ALIGNMENT_SLAB)
tileUpdatePicnum(&tilenum, (actor->GetIndex() & 16383) + 32768, 0);
tspr->picnum = tilenum;
gotpic.Set(tilenum);