From de2a73149b103f9abf253d464dfdf696f83d274d Mon Sep 17 00:00:00 2001 From: Alug Date: Mon, 17 Mar 2025 14:21:08 +0100 Subject: [PATCH] use quickcamdist for K_RollMobjBySlopes we dont need this to be accurate at all and its slightly faster so --- src/k_kart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/k_kart.c b/src/k_kart.c index 4e8fc6dce..5a09fb038 100644 --- a/src/k_kart.c +++ b/src/k_kart.c @@ -3593,7 +3593,7 @@ void K_RollMobjBySlopes(mobj_t* mo, pslope_t *slope) { const boolean usedistance = cv_sloperolldist.value && !splitscreen; const fixed_t rolldist = cv_sloperolldist.value * mapobjectscale; - const fixed_t m_dist = usedistance ? R_PointToDist(mo->x, mo->y) : 0; + const fixed_t m_dist = usedistance ? (R_QuickCamDist(mo->x, mo->y)*FRACUNIT) : 0; const boolean usepitchnroll = (!usedistance || (m_dist <= rolldist)); if (!usepitchnroll)