From aed27a87565f3ec0ac576bab0dc500890ac2d645 Mon Sep 17 00:00:00 2001 From: Treeki Date: Fri, 11 Nov 2011 19:28:11 +0100 Subject: buggy and unfinished painting of objects plus a plethora of bugfixes --- src/tileset.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/tileset.py') 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 -- cgit v1.2.3