From 10fdba373d4d4b85a0716d357c0d36d726e3852e Mon Sep 17 00:00:00 2001 From: toaster Date: Sun, 24 Aug 2025 18:47:26 +0100 Subject: [PATCH] Compilation fix (dead code removal) --- src/k_kart.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/k_kart.c b/src/k_kart.c index f74679537..35c0da86c 100644 --- a/src/k_kart.c +++ b/src/k_kart.c @@ -10063,21 +10063,6 @@ void K_KartPlayerThink(player_t *player, ticcmd_t *cmd) // Speed Assist pt.1 if (!K_PlayerUsesBotMovement(player)) { - UINT32 toDefender = 0; - UINT32 toFirst = 0; - - for (UINT8 i = 0; i < MAXPLAYERS; i++) - { - if (playeringame[i] == false || players[i].spectator == true || players[i].exiting) - continue; - - if (players[i].position == player->position - 1) - toDefender = K_UndoMapScaling(player->distancetofinish - players[i].distancetofinish); - - if (players[i].position == 1) - toFirst = K_UndoMapScaling(player->distancetofinish - players[i].distancetofinish); - } - UINT32 average = 0; UINT8 counted = 0; UINT32 firstRaw = 0;