Use mapobjectscale in K_FakeBotResults

Fixes a crash if bot scale is way too small and should be
more consistent?
This commit is contained in:
James R 2022-08-31 16:37:52 -07:00
parent 9609911e33
commit a003475076

View file

@ -639,7 +639,7 @@ void K_RetireBots(void)
--------------------------------------------------*/
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;
tic_t besttime = UINT32_MAX;
UINT8 numplayers = 0;