Don't let Knuckles play the landing animation unless in fall state
This commit is contained in:
parent
1306b2bbc5
commit
b93c2467e7
|
@ -2263,7 +2263,7 @@ boolean P_PlayerHitFloor(player_t *player, boolean dorollstuff)
|
||||||
else if (!player->skidtime)
|
else if (!player->skidtime)
|
||||||
player->pflags &= ~PF_GLIDING;
|
player->pflags &= ~PF_GLIDING;
|
||||||
}
|
}
|
||||||
else if (player->charability == CA_GLIDEANDCLIMB && player->pflags & PF_THOKKED && (~player->pflags) & PF_SHIELDABILITY)
|
else if (player->charability == CA_GLIDEANDCLIMB && player->pflags & PF_THOKKED && !(player->pflags & PF_SHIELDABILITY) && player->mo->state-states == S_PLAY_FALL)
|
||||||
{
|
{
|
||||||
if (player->mo->state-states != S_PLAY_GLIDE_LANDING)
|
if (player->mo->state-states != S_PLAY_GLIDE_LANDING)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue