Skip to content

Commit

Permalink
Bug, when acquire/releasing magnet.
Browse files Browse the repository at this point in the history
  • Loading branch information
syndr0m committed Aug 2, 2011
1 parent c5a3dc2 commit c873a91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fridge.js
Expand Up @@ -78,15 +78,15 @@ everyone.now.acquireMagnet = function (magnetId) {
// reseting owner
m.owner = null;
// sending order to disable drag&drop on magnet
console.log(new Date()+'=> client '+this.user.clientId+' magnetLost('+m.id+')');
console.log(new Date()+'=> client '+userId+' magnetLost('+m.id+')');
userNow.magnetLost(m.id);
});
// acquiring magnet
if (magnetsById[magnetId].owner == null)
{
// sending order to enable drag&drop on magnet
magnetsById[magnetId].owner = userId;
console.log(new Date()+'=> client '+this.user.clientId+' magnetAcquired('+magnetId+')');
console.log(new Date()+'=> client '+userId+' magnetAcquired('+magnetId+')');
userNow.magnetAcquired(magnetId);
}
};
Expand Down

0 comments on commit c873a91

Please sign in to comment.