Skip to content

Commit

Permalink
- do not call tileUpdatePicnum for voxelized tsprites.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Feb 20, 2022
1 parent 2f55d2a commit cc6629a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/core/rendering/scene/hw_drawinfo.cpp
Expand Up @@ -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);

Expand Down

0 comments on commit cc6629a

Please sign in to comment.