Merge branch 'ptera-escape-bad-state' into 'next'

Fix crash during debug when escaping pterabyte

See merge request STJr/SRB2!1960
This commit is contained in:
MascaraSnake 2023-04-12 09:19:40 +00:00
commit 29582e453d

View file

@ -12808,7 +12808,7 @@ void P_PlayerAfterThink(player_t *player)
P_KillMobj(ptera, player->mo, player->mo, 0);
P_SetObjectMomZ(player->mo, 12*FRACUNIT, false);
player->pflags |= PF_APPLYAUTOBRAKE|PF_JUMPED|PF_THOKKED;
P_SetMobjState(player->mo, S_PLAY_ROLL);
P_SetPlayerMobjState(player->mo, S_PLAY_ROLL);
break;
}