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:08 +01:00
1 parent 981885dafb
commit de2a73149b
1 file changed
+1 -1
+1 -1
View File
@@ -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)