Fix conveyor slopes eventually turning to static

This commit is contained in:
RedEnchilada 2015-05-23 15:44:53 -05:00
parent b121bcca68
commit 109d379980
1 changed files with 7 additions and 4 deletions

View File

@ -946,12 +946,15 @@ void R_DrawSinglePlane(visplane_t *pl)
// I copied ZDoom's code and adapted it to SRB2... -Red
floatv3_t p, m, n;
float ang;
//double zeroheight;
float vx, vy, vz;
float fudge;
float vx = FIXED_TO_FLOAT(viewx+xoffs);
float vy = FIXED_TO_FLOAT(viewy-yoffs);
float vz = FIXED_TO_FLOAT(viewz);
xoffs &= ((1 << (32-nflatshiftup))-1);
yoffs &= ((1 << (32-nflatshiftup))-1);
vx = FIXED_TO_FLOAT(viewx+xoffs);
vy = FIXED_TO_FLOAT(viewy-yoffs);
vz = FIXED_TO_FLOAT(viewz);
zeroheight = FIXED_TO_FLOAT(P_GetZAt(pl->slope, viewx, viewy));