mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Wrong order here
This commit is contained in:
parent
74a757ad69
commit
2c080cbd14
1 changed files with 12 additions and 12 deletions
24
src/k_kart.c
24
src/k_kart.c
|
|
@ -5488,6 +5488,18 @@ void K_MoveKartPlayer(player_t *player, boolean onground)
|
||||||
player->kartstuff[k_rocketsneakertimer] = 1;
|
player->kartstuff[k_rocketsneakertimer] = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Grow Canceling
|
||||||
|
else if (player->kartstuff[k_growshrinktimer] > 0)
|
||||||
|
{
|
||||||
|
if (cmd->buttons & BT_ATTACK)
|
||||||
|
{
|
||||||
|
player->kartstuff[k_growcancel]++;
|
||||||
|
if (player->kartstuff[k_growcancel] > 26)
|
||||||
|
K_RemoveGrowShrink(player);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
player->kartstuff[k_growcancel] = 0;
|
||||||
|
}
|
||||||
else if (player->kartstuff[k_itemtype] == KITEM_NONE)
|
else if (player->kartstuff[k_itemtype] == KITEM_NONE)
|
||||||
{
|
{
|
||||||
if ((player->pflags & PF_ATTACKDOWN) && !HOLDING_ITEM && NO_HYUDORO
|
if ((player->pflags & PF_ATTACKDOWN) && !HOLDING_ITEM && NO_HYUDORO
|
||||||
|
|
@ -5502,18 +5514,6 @@ void K_MoveKartPlayer(player_t *player, boolean onground)
|
||||||
player->kartstuff[k_ringdelay] = 3;
|
player->kartstuff[k_ringdelay] = 3;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Grow Canceling
|
|
||||||
else if (player->kartstuff[k_growshrinktimer] > 0)
|
|
||||||
{
|
|
||||||
if (cmd->buttons & BT_ATTACK)
|
|
||||||
{
|
|
||||||
player->kartstuff[k_growcancel]++;
|
|
||||||
if (player->kartstuff[k_growcancel] > 26)
|
|
||||||
K_RemoveGrowShrink(player);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
player->kartstuff[k_growcancel] = 0;
|
|
||||||
}
|
|
||||||
else if (player->kartstuff[k_itemamount] <= 0)
|
else if (player->kartstuff[k_itemamount] <= 0)
|
||||||
{
|
{
|
||||||
player->kartstuff[k_itemamount] = player->kartstuff[k_itemheld] = 0;
|
player->kartstuff[k_itemamount] = player->kartstuff[k_itemheld] = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue