- fixed typo in wall sprite offsetting code.

This commit is contained in:
Christoph Oelckers 2021-05-20 18:24:15 +02:00
parent a75ed91796
commit b5358bc03c

View file

@ -235,7 +235,7 @@ void HWWall::RenderTexturedWall(HWDrawInfo *di, FRenderState &state, int rflags)
state.SetNpotEmulation(float(h2) / h, xOffset);
}
}
else if (walldist >= 0 && !(rflags && RWF_TRANS))
else if (walldist >= 0 && !(rflags & RWF_TRANS))
{
state.SetDepthBias(-1, -128);
}
@ -1092,11 +1092,6 @@ void HWWall::ProcessWallSprite(HWDrawInfo* di, spritetype* spr, sectortype* sect
auto tex = tileGetTexture(spr->picnum);
if (!tex || !tex->isValid()) return;
if (spr->owner == 771)
{
int a = 0;
}
seg = nullptr;
Sprite = spr;
vec2_t pos[2];