crashing the server is not smart

This commit is contained in:
Victor Lasserre 2023-12-08 19:31:22 +01:00
parent 1fe8d6befd
commit 7ab6ed5262
3 changed files with 2 additions and 3 deletions

View file

@ -17,7 +17,6 @@ let bulletSound = new Sound("./assets/sounds/shoot.mp3");
let driftSound = new Sound("./assets/sounds/drift.mp3");
let net = new Network("wss://ws.gta6.insat.fr:8080?name="+CookiePseudo());
let inp = new Input("canvas");
let date = new Date();
let bullets = [];
let circles = [];
let squares = [];

View file

@ -73,7 +73,7 @@ class Input {
if(oldDir!=this.dir)
{
player.changeDirection(this.dir);
net.update(this.player);
net.update(player);
}
}

View file

@ -5,7 +5,7 @@ class Sound{
}
play(){
this.sound.pause()
//this.sound.pause()
this.sound.currentTime=0;
this.sound.play()
}