mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Barrier power-up: fix insta-whip
- Fix being unable to insta-whip - Fix insta-whip interrupting Barrier
This commit is contained in:
parent
711ffbef0a
commit
eb8741b481
1 changed files with 4 additions and 3 deletions
|
|
@ -8574,7 +8574,9 @@ void K_KartPlayerThink(player_t *player, ticcmd_t *cmd)
|
|||
S_StartSound(player->mo, sfx_s1af);
|
||||
|
||||
player->oldGuard = true;
|
||||
player->instaWhipCharge = 0;
|
||||
|
||||
if (!K_PowerUpRemaining(player, POWERUP_BARRIER))
|
||||
player->instaWhipCharge = 0;
|
||||
}
|
||||
else if (player->oldGuard)
|
||||
{
|
||||
|
|
@ -11679,10 +11681,9 @@ void K_MoveKartPlayer(player_t *player, boolean onground)
|
|||
else
|
||||
{
|
||||
player->instaWhipCharge = 0;
|
||||
player->defenseLockout = PUNISHWINDOW;
|
||||
if (!K_PowerUpRemaining(player, POWERUP_BARRIER))
|
||||
{
|
||||
player->defenseLockout = INSTAWHIP_CHARGETIME;
|
||||
player->defenseLockout = PUNISHWINDOW;
|
||||
}
|
||||
|
||||
S_StartSound(player->mo, sfx_iwhp);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue