Fix use of C23 extension
This commit is contained in:
parent
2a66e0811e
commit
5c836896b6
1 changed files with 21 additions and 19 deletions
40
src/k_kart.c
40
src/k_kart.c
|
|
@ -11634,33 +11634,35 @@ void K_MoveKartPlayer(player_t *player, boolean onground)
|
|||
else
|
||||
{
|
||||
bubbledeflate:
|
||||
boolean popped = false;
|
||||
if (player->bubbleblowup > bubbletime)
|
||||
player->bubbleblowup = bubbletime;
|
||||
|
||||
if (player->bubbleblowup)
|
||||
{
|
||||
player->bubbleblowup--;
|
||||
boolean popped = false;
|
||||
if (player->bubbleblowup > bubbletime)
|
||||
player->bubbleblowup = bubbletime;
|
||||
|
||||
if (!player->bubbleblowup)
|
||||
if (player->bubbleblowup)
|
||||
{
|
||||
// Each use costs a point of health.
|
||||
K_RemoveBubbleHealth(player, 1);
|
||||
player->bubbleblowup--;
|
||||
|
||||
if (player->bubblehealth <= 0)
|
||||
if (!player->bubbleblowup)
|
||||
{
|
||||
// Bubble popped!
|
||||
popped = true;
|
||||
// Each use costs a point of health.
|
||||
K_RemoveBubbleHealth(player, 1);
|
||||
|
||||
if (player->bubblehealth <= 0)
|
||||
{
|
||||
// Bubble popped!
|
||||
popped = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!popped)
|
||||
{
|
||||
if (player->bubblecool)
|
||||
player->itemflags &= ~IF_HOLDREADY;
|
||||
else
|
||||
player->itemflags |= IF_HOLDREADY;
|
||||
if (!popped)
|
||||
{
|
||||
if (player->bubblecool)
|
||||
player->itemflags &= ~IF_HOLDREADY;
|
||||
else
|
||||
player->itemflags |= IF_HOLDREADY;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue