A better check than for skin==0.

This commit is contained in:
toasterbabe 2016-10-21 12:34:16 +01:00
parent 6abd4d20d3
commit 5ad7fc8495

View file

@ -7080,7 +7080,7 @@ static void P_MovePlayer(player_t *player)
if ((cmd->buttons & BT_JUMP) && (player->pflags & PF_THOKKED) && !player->homing) // Super Sonic move
{
if (player->skin == 0 && player->powers[pw_super] && player->speed > FixedMul(5<<FRACBITS, player->mo->scale)
if ((player->charability == CA_THOK) && player->powers[pw_super] && player->speed > FixedMul(5<<FRACBITS, player->mo->scale)
&& P_MobjFlip(player->mo)*player->mo->momz <= 0)
{
if (player->mo->state-states == S_PLAY_PAIN || player->panim == PA_JUMP || player->panim == PA_FALL