diff --git a/traque.js b/traque.js index e22d1e5..52783ce 100644 --- a/traque.js +++ b/traque.js @@ -129,8 +129,8 @@ io.sockets.on('connection', function(socket){ for(i in equipes){ equipes[i].emit('moving', {"id": s.id, "position": s.position}); equipes[i].emit('changeColor', {"id": s.id, "color": c, "debug": "timeout"}); - s.color = c; } + s.color = c; }, invisible_delay, socket, old_color); } else { socket.emit('popup', {"content": MSG_BAD});