From 1fc9492b308ef664e3ed0a701bbfadc91ca0e46e Mon Sep 17 00:00:00 2001 From: Alug Date: Wed, 17 Jan 2024 12:31:13 +0100 Subject: [PATCH] Revert "Use floating point trig in R_SetSlopePlane" This reverts commit 3555783284bc76fc4f5016c266fece8b1b5e619e. --- src/r_plane.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/r_plane.c b/src/r_plane.c index ae49d0d95..e3ea72fda 100644 --- a/src/r_plane.c +++ b/src/r_plane.c @@ -781,10 +781,10 @@ void R_SetSlopePlane(pslope_t *slope, fixed_t xpos, fixed_t ypos, fixed_t zpos, n->x = sin(ang); n->z = -cos(ang); - ang = ANG2RAD(plangle); - temp = P_GetZAt(slope, xpos + FloatToFixed(sin(ang)), ypos + FloatToFixed(cos(ang))); + plangle >>= ANGLETOFINESHIFT; + temp = P_GetZAt(slope, xpos + FINESINE(plangle), ypos + FINECOSINE(plangle)); m->y = FixedToFloat(temp - height); - temp = P_GetZAt(slope, xpos + FloatToFixed(cos(ang)), ypos - FloatToFixed(sin(ang))); + temp = P_GetZAt(slope, xpos + FINECOSINE(plangle), ypos - FINESINE(plangle)); n->y = FixedToFloat(temp - height); }