Commit 805e566c authored by radiolips's avatar radiolips Committed by GitHub
Browse files

Merge pull request #587 from hairyheron/master

Avoid collision check of node with itself. Fixes #586
parents 0fa2a8f6 ae6daac2
...@@ -252,6 +252,7 @@ ...@@ -252,6 +252,7 @@
var newY = n.y; var newY = n.y;
while (newY >= n._origY) { while (newY >= n._origY) {
var collisionNode = _.chain(this.nodes) var collisionNode = _.chain(this.nodes)
.take(i)
.find(_.bind(Utils._didCollide, {n: n, newY: newY})) .find(_.bind(Utils._didCollide, {n: n, newY: newY}))
.value(); .value();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment