From 4a882ecf68aa7ec32809f217e9a4b6b9121dbfbe Mon Sep 17 00:00:00 2001 From: Abdelhakim Qbaich Date: Sat, 25 Feb 2017 15:43:06 -0500 Subject: [PATCH] Only show moves for alive players --- server/game.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/game.js b/server/game.js index 62b14b9..41764fc 100644 --- a/server/game.js +++ b/server/game.js @@ -314,7 +314,7 @@ function next(room) { // Emit infos const roomID = getRoomID(room); - const directions = players.map(p => ({ + const directions = alivePlayers.map(p => ({ id: p.id, direction: p.direction, }));