mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
K_PlayerGuard: always disable if player is in damage state
- Fixes Barrier power-up not being interrupted by damage state
This commit is contained in:
parent
b6a725ad7b
commit
f2f2b41034
1 changed files with 5 additions and 1 deletions
|
|
@ -10790,6 +10790,11 @@ boolean K_PlayerGuard(const player_t *player)
|
|||
return false;
|
||||
}
|
||||
|
||||
if (P_PlayerInPain(player) == true)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (K_PowerUpRemaining(player, POWERUP_BARRIER))
|
||||
{
|
||||
return true;
|
||||
|
|
@ -10814,7 +10819,6 @@ boolean K_PlayerGuard(const player_t *player)
|
|||
|
||||
if (K_PressingEBrake(player) == true
|
||||
&& (player->drift == 0 || P_IsObjectOnGround(player->mo) == false)
|
||||
&& P_PlayerInPain(player) == false
|
||||
&& player->spindashboost == 0
|
||||
&& player->nocontrol == 0)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue