Skip to content

Commit

Permalink
Only show moves for alive players
Browse files Browse the repository at this point in the history
  • Loading branch information
abdelq committed Feb 25, 2017
1 parent e4f0883 commit 4a882ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}));
Expand Down

0 comments on commit 4a882ec

Please sign in to comment.