Fix bots using the wrong speed value in precentage

This commit is contained in:
NepDisk 2025-04-25 15:16:47 -04:00
parent 544409090b
commit dba4448645

View file

@ -2124,7 +2124,7 @@ static void K_drawKartSpeedometer(void)
break;
case 4: // Sonic Drift 2 style percentage
if (stplyr->mo)
convSpeed = (FixedDiv(stplyr->speed, FixedMul(K_GetKartSpeed(stplyr, false, false), ORIG_FRICTION))*100)>>FRACBITS;
convSpeed = (FixedDiv(stplyr->speed, FixedMul(K_GetKartSpeed(stplyr, false, false), K_PlayerBaseFriction(stplyr, ORIG_FRICTION)))*100)>>FRACBITS;
labeln = 3;
break;
default: