Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ So your change should look like:
`drawSprite` (#1026) - @benhuangbmj
- Fixed `onClick()` and `onCollide()` tag variants no longer working -
@mflerackers
- Fixed `levelComp.getAt` to account for `tilePos.x` getting outside of the
level boundary - @benhuangbmj
- Fixed `destroy()` messing up enumeration during `update()` and
`fixedUpdate()`, thanks to @imaginarny for helping to find the cause -
@mflerackers
Expand Down
1 change: 1 addition & 0 deletions src/ecs/components/level/level.ts
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,7 @@ export function level(map: string[], opt: LevelCompOpt): LevelComp {
if (!spatialMap) {
createSpatialMap(this);
}
if (tilePos.x >= numColumns || tilePos.x < 0) return [];
const hash = tile2Hash(tilePos);
return spatialMap![hash] || [];
},
Expand Down