Merge branch 'tiny-try-move-16' into 'master'

Cap TryMove radius to 16x map scale

See merge request KartKrew/Kart!586
This commit is contained in:
James R 2022-05-12 00:05:36 +00:00
commit 900d9e0276

View file

@ -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)