Skip to content

Commit

Permalink
(agrf) Fix merge_bbox demo remap
Browse files Browse the repository at this point in the history
  • Loading branch information
ahyangyi committed Nov 24, 2024
1 parent 5253788 commit 0e4636a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agrf/lib/building/demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ class Demo:
merge_bbox: bool = False

def graphics(self, scale, bpp, remap=None):
remap = remap or self.remap
if self.merge_bbox:
sprites = []
for r, row in enumerate(self.tiles):
for c, sprite in enumerate(row[::-1]):
if sprite is not None:
sprites.extend(sprite.demo_translate(c, r).parent_sprites)
return ALayout(None, sprites, False).graphics(scale, bpp, remap)
remap = remap or self.remap
yofs = 32 * scale
img = LayeredImage.canvas(
-16 * scale * (len(self.tiles) + len(self.tiles[0])),
Expand Down

0 comments on commit 0e4636a

Please sign in to comment.