porygon.py: And iterate properly now.

current
Kiyoshi Aman 2017-12-08 14:05:15 -06:00
parent 2deb2b3561
commit 846080b3b9
1 changed files with 2 additions and 2 deletions

View File

@ -160,8 +160,8 @@ format is one of the supported formats:'''
print('Converting to {}'.format(format))
counter = 0
with open(output, mode='wb') as f:
for column in range(columns):
for row in range(rows):
for row in range(rows):
for column in range(columns):
tile = data.copy(column * 8, row * 8, 8, 8)
f.write(formats[format](tile))
counter += 1