use quickcamdist for K_RollMobjBySlopes

we dont need this to be accurate at all
and its slightly faster so
This commit is contained in:
Alug committed 2025-03-17 14:21:49 +01:00
1 parent dc53fac53d
commit 0119eeb575
1 file changed
+1 -1
+1 -1
View File
@@ -3544,7 +3544,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)