Skip to content

Commit b4fed98

Browse files
committed
Update SetCollisionBetween.js
1 parent 8d2e7b0 commit b4fed98

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/tilemaps/components/SetCollisionBetween.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,18 @@ var SetCollisionBetween = function (start, stop, collides, recalculateFaces, lay
3131
if (recalculateFaces === undefined) { recalculateFaces = true; }
3232
if (updateLayer === undefined) { updateLayer = true; }
3333

34-
if (start > stop) { return; }
34+
if (start > stop)
35+
{
36+
return;
37+
}
3538

36-
// Update the array of colliding indexes
39+
// Update the array of colliding indexes
3740
for (var index = start; index <= stop; index++)
3841
{
3942
SetLayerCollisionIndex(index, collides, layer);
4043
}
4144

42-
// Update the tiles
45+
// Update the tiles
4346
if (updateLayer)
4447
{
4548
for (var ty = 0; ty < layer.height; ty++)

0 commit comments

Comments
 (0)