Add machine dashmode as a condition for gap passage.

(Also remove the sprite2 check, we don't need to be that stingy since PlayerHeight hooks allow greater control over that now!)
This commit is contained in:
lachablock 2021-05-08 12:27:29 +10:00
parent 47f465ccea
commit 3880263f1f

View file

@ -12972,6 +12972,8 @@ boolean P_PlayerCanEnterSpinGaps(player_t *player)
return ((player->pflags & (PF_SPINNING|PF_GLIDING)) // players who are spinning or gliding
|| (player->charability == CA_GLIDEANDCLIMB && player->mo->state-states == S_PLAY_GLIDE_LANDING) // players who are landing from a glide
|| ((player->charflags & (SF_DASHMODE|SF_MACHINE)) == (SF_DASHMODE|SF_MACHINE)
&& player->dashmode >= DASHMODE_THRESHOLD && player->mo->state-states == S_PLAY_DASH) // machine players in dashmode
|| JUMPCURLED(player)); // players who are jumpcurled, but only if they would normally jump that way
}