Remove unused variable (python)

This commit is contained in:
Alexey Kim 2022-10-28 16:33:29 +03:00
parent ad388f459c
commit 873d989fd0
1 changed files with 2 additions and 4 deletions

View File

@ -39,11 +39,9 @@ args = parser.parse_args()
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 ' +
@ -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']))