From 266f1c9a65e1332035f13bc056caeea0f8690eb9 Mon Sep 17 00:00:00 2001 From: James R Date: Wed, 11 May 2022 12:45:00 -0700 Subject: [PATCH] Cap TryMove radius to 16x map scale --- src/p_map.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/p_map.c b/src/p_map.c index f755894e5..8c7b9fbbe 100644 --- a/src/p_map.c +++ b/src/p_map.c @@ -2469,8 +2469,10 @@ boolean P_TryMove(mobj_t *thing, fixed_t x, fixed_t y, boolean allowdropoff) // This makes sure that there are no freezes from computing extremely small movements. // Originally was MAXRADIUS/2, but that causes some inconsistencies for small players. - if (radius < mapobjectscale) - radius = mapobjectscale; + radius = max(radius, mapobjectscale); + + // And Big Large (tm) movements can skip over slopes. + radius = min(radius, 16*mapobjectscale); #if 0 if (thing->hitlag > 0)