mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-31 21:50:48 +00:00
Fix slope flat offsets
This commit is contained in:
parent
0af9e865f9
commit
5047f4e7f0
1 changed files with 5 additions and 3 deletions
|
@ -972,6 +972,7 @@ void R_DrawSinglePlane(visplane_t *pl)
|
|||
if (ds_powersoftwo)
|
||||
{
|
||||
// But xoffs and yoffs are zero..... ???!?!?!???!?!?!
|
||||
// (Except when flat alignment is involved)
|
||||
xoffs &= ((1 << (32-nflatshiftup))-1);
|
||||
yoffs &= ((1 << (32-nflatshiftup))-1);
|
||||
|
||||
|
@ -986,9 +987,10 @@ void R_DrawSinglePlane(visplane_t *pl)
|
|||
}
|
||||
else
|
||||
{
|
||||
// The origin vector is a vertex from whatever linedef defined this slope
|
||||
xoffs = -pl->slope->o.x;
|
||||
yoffs = pl->slope->o.y;
|
||||
// Whoops, this is actually incorrect behaviour.
|
||||
// Keep xoffs and yoffs as they are if this flat has offsets
|
||||
//xoffs = -pl->slope->o.x;
|
||||
//yoffs = pl->slope->o.y;
|
||||
}
|
||||
|
||||
vx = FIXED_TO_FLOAT(pl->viewx+xoffs);
|
||||
|
|
Loading…
Reference in a new issue