mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-14 05:41:02 +00:00
Fix conveyor slopes eventually turning to static
This commit is contained in:
parent
b121bcca68
commit
109d379980
1 changed files with 7 additions and 4 deletions
|
@ -946,12 +946,15 @@ void R_DrawSinglePlane(visplane_t *pl)
|
||||||
// I copied ZDoom's code and adapted it to SRB2... -Red
|
// I copied ZDoom's code and adapted it to SRB2... -Red
|
||||||
floatv3_t p, m, n;
|
floatv3_t p, m, n;
|
||||||
float ang;
|
float ang;
|
||||||
//double zeroheight;
|
float vx, vy, vz;
|
||||||
float fudge;
|
float fudge;
|
||||||
|
|
||||||
float vx = FIXED_TO_FLOAT(viewx+xoffs);
|
xoffs &= ((1 << (32-nflatshiftup))-1);
|
||||||
float vy = FIXED_TO_FLOAT(viewy-yoffs);
|
yoffs &= ((1 << (32-nflatshiftup))-1);
|
||||||
float vz = FIXED_TO_FLOAT(viewz);
|
|
||||||
|
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));
|
zeroheight = FIXED_TO_FLOAT(P_GetZAt(pl->slope, viewx, viewy));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue