Only set flight time to 0 if skin has SPR2_SWIM spriteset.

This commit is contained in:
toaster 2019-09-18 14:11:06 +01:00
parent e993b8981e
commit a8a8ae0d0b

View file

@ -11820,7 +11820,7 @@ void P_PlayerAfterThink(player_t *player)
{
if (player->mo->state-states != S_PLAY_RIDE)
P_SetPlayerMobjState(player->mo, S_PLAY_RIDE);
if (tails->eflags & MFE_UNDERWATER)
if ((tails->skin && ((skin_t *)(tails->skin))->sprites[SPR2_SWIM].numframes) && (tails->eflags & MFE_UNDERWATER))
tails->player->powers[pw_tailsfly] = 0;
}
else