working Date

This commit is contained in:
Victor Lasserre 2023-12-08 19:36:24 +01:00
parent a99fca358f
commit 3103b0974f

View file

@ -218,7 +218,7 @@ class Car
Update() Update()
{ {
if(this.tick==0 && Date.getSeconds()%20==this.spawn) { if(this.tick==0 && new Date.getSeconds()%20==this.spawn) {
this.tick=1; this.tick=1;
} }
this.ChangeDirection(); this.ChangeDirection();