commit
afb79ae638
@ -147,7 +147,7 @@ export async function getOpponentsTarget(carId: number, registeredargetAvailable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Randomize it 5 times
|
// Randomize it 5 times
|
||||||
while(randomArray.length < 5)
|
while(randomArray.length < maxNumber)
|
||||||
{
|
{
|
||||||
// Pick random car Id
|
// Pick random car Id
|
||||||
random = Math.floor(Math.random() * opponentTargetCount + 0.9);
|
random = Math.floor(Math.random() * opponentTargetCount + 0.9);
|
||||||
|
Loading…
Reference in New Issue
Block a user