mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Adjust faked results with gamespeed and scale
This commit is contained in:
parent
62cc86c788
commit
48322a8dd2
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue