mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-10 19:01:50 +00:00
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:
parent
9609911e33
commit
a003475076
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue