Skip to content

Commit

Permalink
-fixed: tilenum 0 is a valid image for flat and wall sprites.
Browse files Browse the repository at this point in the history
It's only invalid for face sprites.
  • Loading branch information
coelckers committed Jun 5, 2023
1 parent 3f630c5 commit 8adc32c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/core/rendering/scene/hw_bunchdrawer.cpp
Expand Up @@ -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

Expand Down

0 comments on commit 8adc32c

Please sign in to comment.