Skip to content

Commit

Permalink
Remove unused variable (python)
Browse files Browse the repository at this point in the history
  • Loading branch information
irwiss committed Oct 28, 2022
1 parent ad388f4 commit 873d989
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions utilities/make_iso.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,9 @@
converted_tile_ids = dict()


def iso_ize(tile_num, new_tile_num=-1, initial_rotation=0, override=False):
def iso_ize(tile_num, initial_rotation=0, override=False):
if override or (tile_num, initial_rotation) not in converted_tile_ids:
print(" iso-izing " + str(tile_num))
if new_tile_num == -1:
new_tile_num = tile_num
tile_png = "tile-{:0>6d}.png".format(tile_num)
command = (
'convert -background transparent ' +
Expand Down Expand Up @@ -133,7 +131,7 @@ def tile_convert(otile, main_id, new_tile_number):
print(" and rotating " + str(otile[g][0]))
# create 3 new iso-ized tiles, as well
for rot in (270, 180, 90):
if iso_ize(otile[g][0], ntile['ntn'], rot):
if iso_ize(otile[g][0], rot):
ntile[g].append(ntile['ntn'])
ntile['ntn'] += 1
print("next tile number now " + str(ntile['ntn']))
Expand Down

0 comments on commit 873d989

Please sign in to comment.