From 7d4720b1a688900200a12152b689f746d3137a98 Mon Sep 17 00:00:00 2001 From: Sally Coolatta Date: Wed, 10 May 2023 20:28:42 -0400 Subject: [PATCH] Fix bot rubberband being different per map scale --- 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 3e490031a..be22c6a29 100644 --- a/src/k_bot.c +++ b/src/k_bot.c @@ -439,7 +439,7 @@ static line_t *K_FindBotController(mobj_t *mo) --------------------------------------------------*/ static UINT32 K_BotRubberbandDistance(player_t *player) { - const UINT32 spacing = FixedDiv(640 * FRACUNIT, K_GetKartGameSpeedScalar(gamespeed)) / FRACUNIT; + const UINT32 spacing = FixedDiv(640 * mapobjectscale, K_GetKartGameSpeedScalar(gamespeed)) / FRACUNIT; const UINT8 portpriority = player - players; UINT8 pos = 0; UINT8 i;