crashing the server is not smart
This commit is contained in:
parent
1fe8d6befd
commit
7ab6ed5262
3 changed files with 2 additions and 3 deletions
|
@ -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 = [];
|
||||
|
|
|
@ -73,7 +73,7 @@ class Input {
|
|||
if(oldDir!=this.dir)
|
||||
{
|
||||
player.changeDirection(this.dir);
|
||||
net.update(this.player);
|
||||
net.update(player);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ class Sound{
|
|||
}
|
||||
|
||||
play(){
|
||||
this.sound.pause()
|
||||
//this.sound.pause()
|
||||
this.sound.currentTime=0;
|
||||
this.sound.play()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue