Don't cut momentum if landing in a roll

This commit is contained in:
lachwright 2020-05-30 19:07:16 +08:00
parent b7c5163419
commit 5136a4d41d
1 changed files with 2 additions and 2 deletions

View File

@ -2948,6 +2948,8 @@ static void P_PlayerZMovement(mobj_t *mo)
}
}
clipmomz = P_PlayerHitFloor(mo->player, true);
if (!stopmovecut)
// Cut momentum in half when you hit the ground and
// aren't pressing any controls.
@ -2958,8 +2960,6 @@ static void P_PlayerZMovement(mobj_t *mo)
}
}
clipmomz = P_PlayerHitFloor(mo->player, true);
if (!(mo->player->pflags & PF_SPINNING) && mo->player->powers[pw_carry] != CR_NIGHTSMODE)
mo->player->pflags &= ~PF_STARTDASH;