1. Westley Martínez
  2. Map Editor

Commits

Westley Martínez  committed 3789624

Fix palette placing tiles out of bounds.

  • Participants
  • Parent commits 460122b
  • Branches stable

Comments (0)

Files changed (1)

File mapeditor.pyw

View file
                                               image=tile, anchor=NW)
                     self.palette.list.append((tile, index))
                     x += 1
-                    if x * self.tile_size > 128:
+                    if x * self.tile_size >= 128:
                         y += 1
                         x = 0
         self.palette.config(scrollregion=(0, 0, x * self.tile_size,