From 5d77807a78bd3915c5583db8db4f0da6d83969d3 Mon Sep 17 00:00:00 2001 From: Sally Coolatta Date: Sun, 24 May 2020 16:16:01 -0400 Subject: [PATCH] const radreduce, removed unused "dir" property --- src/k_bot.c | 2 +- src/k_bot.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/k_bot.c b/src/k_bot.c index 541acd78f..4405bee44 100644 --- a/src/k_bot.c +++ b/src/k_bot.c @@ -396,7 +396,7 @@ static botprediction_t *K_CreateBotPrediction(player_t *player) const INT16 normal = KART_FULLTURN; // "Standard" handling to compare to const fixed_t distreduce = K_BotReducePrediction(player); - fixed_t radreduce = min(distreduce + FRACUNIT/4, FRACUNIT); + const fixed_t radreduce = min(distreduce + FRACUNIT/4, FRACUNIT); const tic_t futuresight = (TICRATE * normal) / max(1, handling); // How far ahead into the future to try and predict const fixed_t speed = P_AproxDistance(player->mo->momx, player->mo->momy); diff --git a/src/k_bot.h b/src/k_bot.h index bbd2dedcd..48756e2c8 100644 --- a/src/k_bot.h +++ b/src/k_bot.h @@ -26,7 +26,6 @@ typedef struct botprediction_s { fixed_t x, y; fixed_t radius; - angle_t dir; } botprediction_t;