From 990733a5ccaec26beac51926f6dc53094f97cf14 Mon Sep 17 00:00:00 2001 From: Sally Coolatta Date: Thu, 28 May 2020 18:46:33 -0400 Subject: [PATCH] Minimum prediction distance Lets them properly steer while respawning --- src/k_bot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/k_bot.c b/src/k_bot.c index 7bbd8baf9..6beb6fe9e 100644 --- a/src/k_bot.c +++ b/src/k_bot.c @@ -496,7 +496,7 @@ static botprediction_t *K_CreateBotPrediction(player_t *player) 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); + const fixed_t speed = max(P_AproxDistance(player->mo->momx, player->mo->momy), K_GetKartSpeed(player, false) / 4); const INT32 distance = (FixedMul(speed, distreduce) / FRACUNIT) * futuresight; botprediction_t *predict = Z_Calloc(sizeof(botprediction_t), PU_LEVEL, NULL);