Skip to content

Commit

Permalink
eyecatcher: hack srom tiles out of deduping, fixes #17
Browse files Browse the repository at this point in the history
  • Loading branch information
city41 committed Nov 19, 2023
1 parent 1a07e44 commit 2335666
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/generators/eyecatcher/eyecatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,10 @@ function setSROMPositions(sromTiles: SROMTile[][], positions: number[][]) {
for (let y = 0; y < positions.length; ++y) {
for (let x = 0; x < positions[y].length; ++x) {
sromTiles[y][x].sromIndex = positions[y][x];
// ensure these tiles are totally static and not involved
// in any duplication
// TODO: a better way to handle this
delete sromTiles[y][x]!.duplicateOf;
}
}
}
Expand Down

0 comments on commit 2335666

Please sign in to comment.