Skip to content

Commit

Permalink
fix: find() が自分を見つけてしまうバグ
Browse files Browse the repository at this point in the history
  • Loading branch information
teramotodaiki committed Jan 11, 2019
1 parent de09a8e commit d9feb6d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/hackforplay/object/object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1385,6 +1385,7 @@ export default class RPGObject extends enchant.Sprite implements N.INumbers {
const foundable = RPGObject.collection
.filter(
item =>
item !== this &&
rangeOfView.left <= item.mapX &&
item.mapX <= rangeOfView.right &&
rangeOfView.top <= item.mapY &&
Expand Down

0 comments on commit d9feb6d

Please sign in to comment.