Commit e38d68a8 authored by 18신대성's avatar 18신대성 Committed by 18류지석

또고침

parent 6bb7a1dc
...@@ -47,6 +47,6 @@ socket.on('defeat', function(msg) // object player ...@@ -47,6 +47,6 @@ socket.on('defeat', function(msg) // object player
socket.on('userDisconnect', function(msg) // {num index , num id, str nickname} socket.on('userDisconnect', function(msg) // {num index , num id, str nickname}
{ {
console.log(msg.index + ' / ' + msg.id + ' / ' + msg.nickname + ' disconnected'); console.log(msg.index + ' / ' + msg.id + ' / ' + msg.nickname + ' disconnected');
RoomData.players[msg.index].isAlive = false; RoomData.players[msg.index] = msg;
RoomData.aliveCount--; RoomData.aliveCount--;
}); });
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment