mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-17 23:21:22 +00:00
* No ridiculously-fast float animation.
* No falling when you accidentially press spin.
This commit is contained in:
parent
b34dc93a18
commit
4c0ef9f0a3
1 changed files with 3 additions and 2 deletions
|
@ -7077,12 +7077,13 @@ static void P_MovePlayer(player_t *player)
|
|||
}
|
||||
}
|
||||
}
|
||||
else if ((cmd->buttons & BT_JUMP) && (player->pflags & PF_THOKKED)) // Super Sonic move
|
||||
|
||||
if ((cmd->buttons & BT_JUMP) && (player->pflags & PF_THOKKED)) // Super Sonic move
|
||||
{
|
||||
if (player->skin == 0 && player->powers[pw_super] && player->speed > FixedMul(5<<FRACBITS, player->mo->scale)
|
||||
&& P_MobjFlip(player->mo)*player->mo->momz <= 0)
|
||||
{
|
||||
if (player->panim == PA_ROLL || player->panim == PA_JUMP || player->mo->state-states == S_PLAY_PAIN || player->panim == PA_WALK)
|
||||
if (player->panim == PA_JUMP || player->panim == PA_FALL)
|
||||
P_SetPlayerMobjState(player->mo, S_PLAY_SUPER_FLOAT);
|
||||
|
||||
player->mo->momz = 0;
|
||||
|
|
Loading…
Reference in a new issue