This commit is contained in:
sgay 2022-09-14 17:11:46 +00:00
parent 875e079730
commit 64bd22ed5a

View file

@ -129,8 +129,8 @@ io.sockets.on('connection', function(socket){
for(i in equipes){ for(i in equipes){
equipes[i].emit('moving', {"id": s.id, "position": s.position}); equipes[i].emit('moving', {"id": s.id, "position": s.position});
equipes[i].emit('changeColor', {"id": s.id, "color": c, "debug": "timeout"}); equipes[i].emit('changeColor', {"id": s.id, "color": c, "debug": "timeout"});
s.color = c;
} }
s.color = c;
}, invisible_delay, socket, old_color); }, invisible_delay, socket, old_color);
} else { } else {
socket.emit('popup', {"content": MSG_BAD}); socket.emit('popup', {"content": MSG_BAD});