From 2cd538e4987e975b4aa004ed658a4b0cf88fc479 Mon Sep 17 00:00:00 2001 From: Ben McEldowney Date: Wed, 26 Mar 2014 07:48:47 -0700 Subject: [PATCH] removing erroneous tilemap layer retrieval for object layers in convertCollisionObjects() --- src/physics/p2/World.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/physics/p2/World.js b/src/physics/p2/World.js index ff47e1cbe..642f591ba 100644 --- a/src/physics/p2/World.js +++ b/src/physics/p2/World.js @@ -1396,8 +1396,6 @@ Phaser.Physics.P2.prototype = { if (typeof addToWorld === 'undefined') { addToWorld = true; } - layer = map.getLayer(layer); - var output = []; for (var i = 0, len = map.collision[layer].length; i < len; i++)