From ad02fbcf32d1ddff3207880518752f40db5a9f68 Mon Sep 17 00:00:00 2001 From: Sally Coolatta Date: Sat, 26 Nov 2022 19:02:07 -0500 Subject: [PATCH] Reel the prediction back when it hits wall --- 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 73139e6b6..98bf8c88f 100644 --- a/src/k_bot.c +++ b/src/k_bot.c @@ -710,7 +710,7 @@ static botprediction_t *K_CreateBotPrediction(player_t *player) if (P_TraceBotTraversal(player->mo, wp->mobj) == false) { // If we can't get a direct path to this waypoint, predict less. - distanceleft -= disttonext; + distanceleft /= 2; radreduce = FRACUNIT >> 1; }