one character can make a big differences

This commit is contained in:
Victor Lasserre 2023-12-08 19:34:46 +01:00
parent 7ab6ed5262
commit a99fca358f

View file

@ -218,7 +218,7 @@ class Car
Update()
{
if(this.tick==0 && date.getSeconds()%20==this.spawn) {
if(this.tick==0 && Date.getSeconds()%20==this.spawn) {
this.tick=1;
}
this.ChangeDirection();
@ -246,7 +246,7 @@ class Car
}
pseudoaleatoire() {
return Math.floor(date.now()/1000)%10
return Math.floor(Date.now()/1000)%10
}
ChangeDirection()