Skip to content

Commit

Permalink
Merge pull request #160 from entrylabs/issue/#1924
Browse files Browse the repository at this point in the history
issue #1924 fix
  • Loading branch information
chanlee committed Feb 2, 2016
2 parents 177a2de + 58fcfbb commit 066de2a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions dist/entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -2779,7 +2779,7 @@ Entry.block.reach_something = function(a, b) {
}
for (var c = c.parent.clonedEntities, e = 0, g = c.length;e < g;e++) {
var h = c[e];
if (h.getVisible() && !h.isStamp && Entry.checkCollisionRect(d, h.object.getTransformedBounds())) {
if (!h.isStamp && h.getVisible() && Entry.checkCollisionRect(d, h.object.getTransformedBounds())) {
return !0;
}
}
Expand All @@ -2790,7 +2790,7 @@ Entry.block.reach_something = function(a, b) {
c = c.parent.clonedEntities;
e = 0;
for (g = c.length;e < g;e++) {
if (h = c[e], h.getVisible() && !h.isStamp && f(d, h.object, .2, !0)) {
if (h = c[e], !h.isStamp && h.getVisible() && f(d, h.object, .2, !0)) {
return !0;
}
}
Expand Down
4 changes: 2 additions & 2 deletions dist/entry.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions src/blocks/block_judgement.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ Entry.block.reach_something = function (sprite, script) {
var clonedEntities = targetSprite.parent.clonedEntities;
for (var i=0, len=clonedEntities.length; i<len; i++) {
var entity = clonedEntities[i];
if (!entity.getVisible() || entity.isStamp)
if(entity.isStamp)
continue;
if (!entity.getVisible())
continue;
if (Entry.checkCollisionRect(bound, entity.object.getTransformedBounds()))
return true;
Expand All @@ -114,7 +116,9 @@ Entry.block.reach_something = function (sprite, script) {
var clonedEntities = targetSprite.parent.clonedEntities;
for (var i=0, len=clonedEntities.length; i<len; i++) {
var entity = clonedEntities[i];
if (!entity.getVisible() || entity.isStamp)
if(entity.isStamp)
continue;
if (!entity.getVisible())
continue;
if (collision(object,entity.object,ath,true))
return true;
Expand Down

0 comments on commit 066de2a

Please sign in to comment.