Merge branch 'fake-bot-results-crash' into 'master'

Use mapobjectscale in K_FakeBotResults

See merge request KartKrew/Kart!658
This commit is contained in:
Sal 2022-09-03 14:20:34 +00:00
commit 1e9b95e546

View file

@ -639,7 +639,7 @@ void K_RetireBots(void)
--------------------------------------------------*/ --------------------------------------------------*/
void K_FakeBotResults(player_t *bot) void K_FakeBotResults(player_t *bot)
{ {
const UINT32 distfactor = FixedMul(32 * bot->mo->scale, K_GetKartGameSpeedScalar(gamespeed)) / FRACUNIT; const UINT32 distfactor = FixedMul(32 * mapobjectscale, K_GetKartGameSpeedScalar(gamespeed)) / FRACUNIT;
UINT32 worstdist = 0; UINT32 worstdist = 0;
tic_t besttime = UINT32_MAX; tic_t besttime = UINT32_MAX;
UINT8 numplayers = 0; UINT8 numplayers = 0;