From 48322a8dd2b551e04e48930857d2662c992445b8 Mon Sep 17 00:00:00 2001 From: Sally Coolatta Date: Wed, 13 May 2020 22:17:38 -0400 Subject: [PATCH] Adjust faked results with gamespeed and scale --- src/k_grandprix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/k_grandprix.c b/src/k_grandprix.c index 77bdf723c..a408e4198 100644 --- a/src/k_grandprix.c +++ b/src/k_grandprix.c @@ -188,7 +188,7 @@ void K_InitGrandPrixBots(void) void K_FakeBotResults(player_t *bot) { - const UINT32 distfactor = 32; + const UINT32 distfactor = FixedMul(32 * bot->mo->scale, K_GetKartGameSpeedScalar(gamespeed)) / FRACUNIT; UINT32 worstdist = 0; tic_t besttime = UINT32_MAX; UINT8 numplayers = 0; @@ -234,7 +234,7 @@ void K_FakeBotResults(player_t *bot) // hey, you "won" bot->exiting = 2; - bot->realtime = bot->realtime + (bot->distancetofinish / distfactor); + bot->realtime += (bot->distancetofinish / distfactor); bot->distancetofinish = 0; }