mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Fix a correctly timed Thunder Shield preventing you from using rings (resolves #220)
This commit is contained in:
parent
4b1cef0f20
commit
3f71251fd6
1 changed files with 10 additions and 2 deletions
|
|
@ -9254,9 +9254,17 @@ void K_MoveKartPlayer(player_t *player, boolean onground)
|
||||||
if (ATTACK_IS_DOWN && !HOLDING_ITEM && NO_HYUDORO)
|
if (ATTACK_IS_DOWN && !HOLDING_ITEM && NO_HYUDORO)
|
||||||
{
|
{
|
||||||
K_DoThunderShield(player);
|
K_DoThunderShield(player);
|
||||||
|
if (player->itemamount > 0)
|
||||||
|
{
|
||||||
|
// Why is this a conditional?
|
||||||
|
// Thunder shield: the only item that allows you to
|
||||||
|
// activate a mine while you're out of its radius,
|
||||||
|
// the SAME tic it sets your itemamount to 0
|
||||||
|
// ...:dumbestass:
|
||||||
player->itemamount--;
|
player->itemamount--;
|
||||||
K_PlayAttackTaunt(player->mo);
|
K_PlayAttackTaunt(player->mo);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case KITEM_BUBBLESHIELD:
|
case KITEM_BUBBLESHIELD:
|
||||||
if (player->curshield != KSHIELD_BUBBLE)
|
if (player->curshield != KSHIELD_BUBBLE)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue