mirror of
https://github.com/wassname/phaser.git
synced 2026-07-01 16:50:43 +08:00
fix Tilemap.setCollision
This commit is contained in:
@@ -400,7 +400,7 @@ Phaser.Tilemap.prototype = {
|
||||
// Collide all of the IDs given in the indexes array
|
||||
for (var i = 0, len = indexes.length; i < len; i++)
|
||||
{
|
||||
this.setCollisionByIndex(i, layer, false);
|
||||
this.setCollisionByIndex(indexes[i], layer, false);
|
||||
}
|
||||
|
||||
// Now re-calculate interesting faces
|
||||
|
||||
Reference in New Issue
Block a user