diff options
Diffstat (limited to 'src/tileset.py')
-rw-r--r-- | src/tileset.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tileset.py b/src/tileset.py index 8d4bbb6..763c197 100644 --- a/src/tileset.py +++ b/src/tileset.py @@ -49,7 +49,7 @@ class KPTileObject(object): buf = [] beforeRepeat = [] - inRepeat = self.tiles.copy() + inRepeat = self.tiles[:] afterRepeat = [] if (self.wrap == 1) or (self.wrap == 3) or (self.wrap == 5): @@ -99,11 +99,11 @@ class KPTileObject(object): for x in xrange(width): if x < bC: - buf[x] = beforeRepeat[y] + buf[x] = beforeRepeat[x] elif x < middleUntil: - buf[x] = inRepeat[(y - bC) % iC] + buf[x] = inRepeat[(x - bC) % iC] else: - buf[x] = afterRepeat[y - bC - iC] + buf[x] = afterRepeat[x - bC - iC] return buf |