killed undead

This commit is contained in:
sgay 2022-09-14 13:20:33 +00:00
parent 4f4fed8ea7
commit 1c5979dc14

View file

@ -147,6 +147,8 @@ io.sockets.on('connection', function(socket){
equipes[i].emit('setName', {"id": socket.id, "name": d.name}); equipes[i].emit('setName', {"id": socket.id, "name": d.name});
}); });
socket.on("disconnect", function(_){ socket.on("disconnect", function(_){
console.log(socket.id + " disconnect");
socket.shown = false;
for(i in equipes) for(i in equipes)
equipes[i].emit('remove', {"id": socket.id}); equipes[i].emit('remove', {"id": socket.id});
}); });