mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Cap TryMove radius to 16x map scale
This commit is contained in:
parent
e28295635c
commit
266f1c9a65
1 changed files with 4 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue