0
0
Fork 0
mirror of https://github.com/ZDoom/Raze.git synced 2025-03-22 17:01:08 +00:00

-fixed: tilenum 0 is a valid image for flat and wall sprites.

It's only invalid for face sprites.
This commit is contained in:
Christoph Oelckers 2023-06-05 23:35:24 +02:00
parent 3f630c5cb6
commit 8adc32c6c9

View file

@ -683,7 +683,7 @@ void BunchDrawer::ProcessSection(int sectionnum, bool portal)
auto tex = actor->spr.spritetexture();
if (!tex.isValid()) continue;
auto tx = TexMan.GetGameTexture(tex);
if (tx->GetUseType() == ETextureType::FirstDefined) continue;
if (tx->GetUseType() == ETextureType::FirstDefined && (actor->spr.cstat & CSTAT_SPRITE_ALIGNMENT_MASK) == CSTAT_SPRITE_ALIGNMENT_FACING) continue;
auto viewvec = actor->spr.pos.XY() - DVector2(viewx, -viewy); // note that viewy is in render coordinates