Browse files

cp.js and cp.min.js merged

  • Loading branch information...
2 parents 0bcbd3e + 33b569d commit a0d9560dbfeed447b1a6b648dd330ce78fff775f @robwalch robwalch committed Jan 29, 2013
Showing with 7 additions and 10 deletions.
  1. +5 −7 cp.js
  2. +2 −3 cp.min.js
View
12 cp.js
@@ -2511,18 +2511,16 @@ BBTree.prototype.optimize = function()
var nodeRender = function(node, depth)
{
if(!node.isLeaf && depth <= 10){
- nodeRender(node.a, depth + 1);
- nodeRender(node.b, depth + 1);
+ nodeRender(node.A, depth + 1);
+ nodeRender(node.B, depth + 1);
}
-// var bb = node.bb;
-
var str = '';
for(var i = 0; i < depth; i++) {
str += ' ';
}
-// console.log(str + bb.b + ' ' + bb.t);
+ console.log(str + node.bb_b + ' ' + node.bb_t);
};
BBTree.prototype.log = function(){
@@ -4134,8 +4132,8 @@ Body.prototype.sleepWithGroup = function(group){
return;
}
- for(var i = 0; i < body.shapeList.length; i++){
- body.shapeList.update(this.p, this.rot);
+ for(var i = 0; i < this.shapeList.length; i++){
+ this.shapeList[i].update(this.p, this.rot);
}
space.deactivateBody(this);
View
5 cp.min.js
2 additions, 3 deletions not shown because the diff is too large. Please use a local Git client to view these changes.

0 comments on commit a0d9560

Please sign in to comment.