From 5c836896b656c8cd105ef8bea3da65b9265f2bd3 Mon Sep 17 00:00:00 2001 From: NepDisk Date: Tue, 26 Aug 2025 14:59:16 -0400 Subject: [PATCH] Fix use of C23 extension --- src/k_kart.c | 40 +++++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/src/k_kart.c b/src/k_kart.c index f7f8464c6..cab868034 100644 --- a/src/k_kart.c +++ b/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; + } } } }