Skip to content

Commit

Permalink
ui: bugfix and debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
indutny committed Feb 15, 2012
1 parent 0ebac5f commit 33cc35e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions public/javascripts/main.js
Expand Up @@ -349,8 +349,11 @@

// Displaying ghosts
function onGuyEnter(guy) {
if (window.console) console.log(guy.id);

// Ignore myself
if (guy.id === socket.socket.sessionid) return;
if (ghostsMap[guy.id]) return;
ghosts.push(ghostsMap[guy.id] = new Man());
};

Expand Down

0 comments on commit 33cc35e

Please sign in to comment.