1
0
mirror of synced 2024-12-04 19:17:58 +01:00

fix wrong value

This commit is contained in:
Shiroi Kitsu 2023-02-21 19:01:45 +07:00
parent 1d4b6b995c
commit b19f715160

View File

@ -147,7 +147,7 @@ export async function getOpponentsTarget(carId: number, registeredargetAvailable
}
// Randomize it 5 times
while(randomArray.length < 5)
while(randomArray.length < maxNumber)
{
// Pick random car Id
random = Math.floor(Math.random() * opponentTargetCount + 0.9);