Added NOAUTOOFFSKULLFLY flag

Disables resetting skullfly and state when velocity is zero while charging.
This commit is contained in:
Boondorl 2025-01-28 10:49:43 -05:00 committed by Ricardo Luís Vaz Silva
commit d527829ee3
3 changed files with 3 additions and 1 deletions

View file

@ -2105,7 +2105,7 @@ static double P_XYMovement (AActor *mo, DVector2 scroll)
if (move.isZero())
{
if (mo->flags & MF_SKULLFLY)
if ((mo->flags & MF_SKULLFLY) && !(mo->flags9 & MF9_NOAUTOOFFSKULLFLY))
{
// the skull slammed into something
mo->flags &= ~MF_SKULLFLY;