From cc6629a95f5ff108e141107c4effd09c3f041a37 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 20 Feb 2022 23:36:04 +0100 Subject: [PATCH] - do not call tileUpdatePicnum for voxelized tsprites. --- source/core/rendering/scene/hw_drawinfo.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/core/rendering/scene/hw_drawinfo.cpp b/source/core/rendering/scene/hw_drawinfo.cpp index abb467cbf..aa15c7962 100644 --- a/source/core/rendering/scene/hw_drawinfo.cpp +++ b/source/core/rendering/scene/hw_drawinfo.cpp @@ -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);