From 02a1d81d760525f515337d2109feba8887aa5edb Mon Sep 17 00:00:00 2001 From: Treeki Date: Wed, 9 Nov 2011 05:48:51 +0100 Subject: a bunch of incomplete stuff --- src/editorui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/editorui.py') 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): -- cgit v1.2.3