diff options
Diffstat (limited to 'src/editorui.py')
-rw-r--r-- | src/editorui.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/editorui.py b/src/editorui.py index 7f2a7f7..51b148d 100644 --- a/src/editorui.py +++ b/src/editorui.py @@ -31,7 +31,7 @@ class KPMapScene(QtGui.QGraphicsScene): drawRight = min(areaRightT, right) drawTop = max(areaTopT, top) - drawBottom = max(areaBottomT, bottom) + drawBottom = min(areaBottomT, bottom) srcY = drawTop - top destY = drawTop * 24 @@ -40,7 +40,7 @@ class KPMapScene(QtGui.QGraphicsScene): baseDestX = drawLeft * 24 rows = layer.cache - tileset = KP.map.tilesets[layer.tileset] + tileset = KP.map.loadedTilesets[layer.tileset] tileList = tileset.tiles for y in xrange(drawTop, drawBottom): |