mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Remove step-down change
This commit is contained in:
parent
bc538a066f
commit
1eb1309032
1 changed files with 6 additions and 7 deletions
13
src/p_map.c
13
src/p_map.c
|
|
@ -2463,11 +2463,6 @@ fixed_t P_GetThingStepUp(mobj_t *thing)
|
||||||
const fixed_t maxstepmove = P_BaseStepUp();
|
const fixed_t maxstepmove = P_BaseStepUp();
|
||||||
fixed_t maxstep = maxstepmove;
|
fixed_t maxstep = maxstepmove;
|
||||||
|
|
||||||
if (thing->player && thing->player->fastfall != 0)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (P_WaterStepUp(thing) == true)
|
if (P_WaterStepUp(thing) == true)
|
||||||
{
|
{
|
||||||
// Add some extra stepmove when waterskipping
|
// Add some extra stepmove when waterskipping
|
||||||
|
|
@ -2524,16 +2519,20 @@ boolean P_TryMove(mobj_t *thing, fixed_t x, fixed_t y, boolean allowdropoff)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
do {
|
do {
|
||||||
if (thing->flags & MF_NOCLIP) {
|
if (thing->flags & MF_NOCLIP)
|
||||||
|
{
|
||||||
tryx = x;
|
tryx = x;
|
||||||
tryy = y;
|
tryy = y;
|
||||||
} else {
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
if (x-tryx > radius)
|
if (x-tryx > radius)
|
||||||
tryx += radius;
|
tryx += radius;
|
||||||
else if (x-tryx < -radius)
|
else if (x-tryx < -radius)
|
||||||
tryx -= radius;
|
tryx -= radius;
|
||||||
else
|
else
|
||||||
tryx = x;
|
tryx = x;
|
||||||
|
|
||||||
if (y-tryy > radius)
|
if (y-tryy > radius)
|
||||||
tryy += radius;
|
tryy += radius;
|
||||||
else if (y-tryy < -radius)
|
else if (y-tryy < -radius)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue