- fixed texture y-flipping on bottom tiers of walls.

The flip flag was taken from the wrong side of the wall.
This commit is contained in:
Christoph Oelckers 2021-05-07 00:18:13 +02:00
parent 29b0106a96
commit b644000b02

View file

@ -705,7 +705,7 @@ void HWWall::DoTexture(HWDrawInfo* di, walltype* wal, walltype* refwall, float r
{
float h = hl + (hr - hl) * frac;
h = (-(float)(refheight + (h * 256)) / ((th * 2048.0f) / (float)(wal->yrepeat))) + ypanning;
if (wal->cstat & CSTAT_WALL_YFLIP) h = -h;
if (refwall->cstat & CSTAT_WALL_YFLIP) h = -h;
return h;
};