Fix slope flat offsets
This commit is contained in:
parent
0af9e865f9
commit
5047f4e7f0
|
@ -972,6 +972,7 @@ void R_DrawSinglePlane(visplane_t *pl)
|
||||||
if (ds_powersoftwo)
|
if (ds_powersoftwo)
|
||||||
{
|
{
|
||||||
// But xoffs and yoffs are zero..... ???!?!?!???!?!?!
|
// But xoffs and yoffs are zero..... ???!?!?!???!?!?!
|
||||||
|
// (Except when flat alignment is involved)
|
||||||
xoffs &= ((1 << (32-nflatshiftup))-1);
|
xoffs &= ((1 << (32-nflatshiftup))-1);
|
||||||
yoffs &= ((1 << (32-nflatshiftup))-1);
|
yoffs &= ((1 << (32-nflatshiftup))-1);
|
||||||
|
|
||||||
|
@ -986,9 +987,10 @@ void R_DrawSinglePlane(visplane_t *pl)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// The origin vector is a vertex from whatever linedef defined this slope
|
// Whoops, this is actually incorrect behaviour.
|
||||||
xoffs = -pl->slope->o.x;
|
// Keep xoffs and yoffs as they are if this flat has offsets
|
||||||
yoffs = pl->slope->o.y;
|
//xoffs = -pl->slope->o.x;
|
||||||
|
//yoffs = pl->slope->o.y;
|
||||||
}
|
}
|
||||||
|
|
||||||
vx = FIXED_TO_FLOAT(pl->viewx+xoffs);
|
vx = FIXED_TO_FLOAT(pl->viewx+xoffs);
|
||||||
|
|
Loading…
Reference in New Issue