summaryrefslogtreecommitdiff
path: root/src/tileset.py
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2011-11-11 19:28:11 +0100
committerTreeki <treeki@gmail.com>2011-11-11 19:28:11 +0100
commitaed27a87565f3ec0ac576bab0dc500890ac2d645 (patch)
treed9b546faab290a16437e4a5e2751631ae64bdf89 /src/tileset.py
parente8fecb825f98cb8167ca2f803c5e720beca940c6 (diff)
downloadkoopatlas-aed27a87565f3ec0ac576bab0dc500890ac2d645.tar.gz
koopatlas-aed27a87565f3ec0ac576bab0dc500890ac2d645.zip
buggy and unfinished painting of objects plus a plethora of bugfixes
Diffstat (limited to '')
-rw-r--r--src/tileset.py8
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