From 3b6a2fed77b0940ea71baba9e4e00958a7cc8d2e Mon Sep 17 00:00:00 2001 From: Sally Coolatta Date: Mon, 4 May 2020 21:46:00 -0400 Subject: [PATCH] Make the safe distance from the road farther --- src/k_bot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/k_bot.c b/src/k_bot.c index e3c1bfd08..52731769b 100644 --- a/src/k_bot.c +++ b/src/k_bot.c @@ -461,7 +461,7 @@ static inline boolean K_FindBlockingWalls(line_t *line) blocked: linedist = K_DistanceOfLineFromPoint(line->v1->x, line->v1->y, line->v2->x, line->v2->y, botmo->x, botmo->y); - linedist -= (botmo->radius * 4); // Maintain a reasonable distance away from it + linedist -= (botmo->radius * 8); // Maintain a reasonable distance away from it if (linedist > distancetocheck) { @@ -1228,7 +1228,7 @@ void K_BuildBotTiccmd(player_t *player, ticcmd_t *cmd) else { const fixed_t playerwidth = (player->mo->radius * 2); - const fixed_t realrad = predict->radius - (playerwidth * 2); // Remove a "safe" distance away from the edges of the road + const fixed_t realrad = predict->radius - (playerwidth * 4); // Remove a "safe" distance away from the edges of the road fixed_t rad = realrad; fixed_t dirdist = K_DistanceOfLineFromPoint( player->mo->x, player->mo->y,