mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-28 04:51:42 +00:00
No item usage while squished or respawning
This commit is contained in:
parent
e5e7bc4c11
commit
971040fba9
1 changed files with 2 additions and 1 deletions
|
|
@ -4662,7 +4662,8 @@ void K_MoveKartPlayer(player_t *player, boolean onground)
|
||||||
else if (cmd->buttons & BT_ATTACK)
|
else if (cmd->buttons & BT_ATTACK)
|
||||||
player->pflags |= PF_ATTACKDOWN;
|
player->pflags |= PF_ATTACKDOWN;
|
||||||
|
|
||||||
if (player && player->mo && player->mo->health > 0 && !player->spectator && !(player->exiting || mapreset) && player->kartstuff[k_spinouttimer] == 0)
|
if (player && player->mo && player->mo->health > 0 && !player->spectator && !(player->exiting || mapreset)
|
||||||
|
&& player->kartstuff[k_spinouttimer] == 0 && player->kartstuff[k_squishedtimer] == 0 && player->kartstuff[k_respawn] == 0)
|
||||||
{
|
{
|
||||||
// First, the really specific, finicky items that function without the item being directly in your item slot.
|
// First, the really specific, finicky items that function without the item being directly in your item slot.
|
||||||
// Karma item dropping
|
// Karma item dropping
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue