- Fixed: Flipping textures horizontally also flipped the scrolling direction.

SVN r3976 (trunk)
This commit is contained in:
Randy Heit 2012-12-04 03:24:25 +00:00
parent ea5d2346bf
commit 3a3e9c7063
1 changed files with 12 additions and 0 deletions

View File

@ -1850,6 +1850,10 @@ void R_RenderSegLoop ()
{
rw_offset = rw_offset_mid;
}
if (xscale < 0)
{
rw_offset = -rw_offset;
}
if (rw_pic->GetHeight() != 1 << rw_pic->HeightBits)
{
wallscan_np2(x1, x2-1, walltop, wallbottom, swall, lwall, yscale, MAX(rw_frontcz1, rw_frontcz2), MIN(rw_frontfz1, rw_frontfz2), false);
@ -1889,6 +1893,10 @@ void R_RenderSegLoop ()
{
rw_offset = rw_offset_top;
}
if (xscale < 0)
{
rw_offset = -rw_offset;
}
if (rw_pic->GetHeight() != 1 << rw_pic->HeightBits)
{
wallscan_np2(x1, x2-1, walltop, wallupper, swall, lwall, yscale, MAX(rw_frontcz1, rw_frontcz2), MIN(rw_backcz1, rw_backcz2), false);
@ -1931,6 +1939,10 @@ void R_RenderSegLoop ()
{
rw_offset = rw_offset_bottom;
}
if (xscale < 0)
{
rw_offset = -rw_offset;
}
if (rw_pic->GetHeight() != 1 << rw_pic->HeightBits)
{
wallscan_np2(x1, x2-1, walllower, wallbottom, swall, lwall, yscale, MAX(rw_backfz1, rw_backfz2), MIN(rw_frontfz1, rw_frontfz2), false);