Skip to content

Commit

Permalink
we don't need to sent an updateMagnet event to a client moving a magn…
Browse files Browse the repository at this point in the history
…et anymore.
  • Loading branch information
syndr0m committed Aug 2, 2011
1 parent eddb0d9 commit f25adf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fridge.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ everyone.now.moveMagnet = function (magnetId, top, left) {
console.log(new Date()+'<= client '+this.user.clientId+' moveMagnet('+magnetId+', '+top+', '+left+')');
magnetsById[magnetId].top = top;
magnetsById[magnetId].left = left;
everyone.now.updateMagnet(magnetId, top, left);
everyone.exclude([this.user.clientId]).now.updateMagnet(magnetId, top, left);
};

// semaphore: acquireMagnet/releaseMagnet prevent several users
Expand Down

0 comments on commit f25adf2

Please sign in to comment.