mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 22:18:29 +00:00
Update SetCollisionBetween.js
This commit is contained in:
parent
8d2e7b08c5
commit
b4fed98aa2
1 changed files with 6 additions and 3 deletions
|
@ -31,15 +31,18 @@ var SetCollisionBetween = function (start, stop, collides, recalculateFaces, lay
|
|||
if (recalculateFaces === undefined) { recalculateFaces = true; }
|
||||
if (updateLayer === undefined) { updateLayer = true; }
|
||||
|
||||
if (start > stop) { return; }
|
||||
if (start > stop)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// Update the array of colliding indexes
|
||||
// Update the array of colliding indexes
|
||||
for (var index = start; index <= stop; index++)
|
||||
{
|
||||
SetLayerCollisionIndex(index, collides, layer);
|
||||
}
|
||||
|
||||
// Update the tiles
|
||||
// Update the tiles
|
||||
if (updateLayer)
|
||||
{
|
||||
for (var ty = 0; ty < layer.height; ty++)
|
||||
|
|
Loading…
Add table
Reference in a new issue