From e5f96231138357f7b66e2acbf11e01ec0a08902f Mon Sep 17 00:00:00 2001 From: Alug Date: Sun, 13 Apr 2025 09:08:16 +0200 Subject: [PATCH] move this to make it little more clear what this is for --- src/k_kart.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/k_kart.c b/src/k_kart.c index 500eb4eaa..a67a3fec7 100644 --- a/src/k_kart.c +++ b/src/k_kart.c @@ -3669,11 +3669,12 @@ void K_RollMobjBySlopes(mobj_t* mo, pslope_t *slope) fixed_t tempz = slope->normal.z; fixed_t tempy = slope->normal.y; fixed_t tempx = slope->normal.x; - fixed_t tempangle = -(R_PointToAngle2(0, 0, FixedSqrt(FixedMul(tempy, tempy) + FixedMul(tempz, tempz)), tempx)); + fixed_t tempangle = 0; // admittedly this is a very hacky way to do the pitch and roll easing // pitch + tempangle = -(R_PointToAngle2(0, 0, FixedSqrt(FixedMul(tempy, tempy) + FixedMul(tempz, tempz)), tempx)); an = (INT32)((angle_t)tempangle - mo->pitch_sprite) / SLOPEROLL_DIV; mo->pitch_sprite = an ? mo->pitch_sprite + an : (angle_t)tempangle; mo->slopepitch = flip ? InvAngle(mo->pitch_sprite) : mo->pitch_sprite;