diff options
author | Treeki <treeki@gmail.com> | 2012-02-17 20:07:06 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2012-02-17 20:07:06 +0100 |
commit | 08d3794ee696231961b1e74e52d08d0e52b37566 (patch) | |
tree | ab82b545c7a408cc5a02ee7906227337e6b88c02 | |
parent | d6903bed3ebf170a68be7a4891df6a2fb5f31dc7 (diff) | |
download | koopatlas-08d3794ee696231961b1e74e52d08d0e52b37566.tar.gz koopatlas-08d3794ee696231961b1e74e52d08d0e52b37566.zip |
fixed downward slope rendering
Diffstat (limited to '')
-rw-r--r-- | src/tileset.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tileset.py b/src/tileset.py index 244cf8e..2528d8a 100644 --- a/src/tileset.py +++ b/src/tileset.py @@ -155,7 +155,7 @@ class KPTileObject(object): # Paint the mainblock for row in h: for tile in w: - if (tile == (row * self.width) + offset): + if (tile == (row * self.width) + offset) and offset < self.width: buf[row][tile] = mainblock[offset] offset += 1 offset = 0 @@ -163,7 +163,7 @@ class KPTileObject(object): # Paint the subblock for row in h: for tile in w: - if (tile == ((row - 1) * self.width) + offset): + if (tile == ((row - 1) * self.width) + offset) and offset < self.width: buf[row][tile] = mainblock[offset] offset += 1 offset = 0 |