From aec15f95184079a77fe1e8500bfb2010a36d5bd8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 26 Jan 2011 21:03:47 +0200 Subject: testxml: Dont check collision layer if it already empty. --- testxml/testxml.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'testxml/testxml.py') diff --git a/testxml/testxml.py b/testxml/testxml.py index 86a6cae..10a4d60 100755 --- a/testxml/testxml.py +++ b/testxml/testxml.py @@ -1125,7 +1125,7 @@ def testCollisionLayer(file, layer): if y2 < 0: y2 = 0 - if arr is None: + if arr is None : return tileset for x in range(0, layer.width): @@ -1142,6 +1142,7 @@ def testCollisionLayer(file, layer): if haveTiles == False: showMsgFile(file, "empty collision layer", False) + return set() return tileset -- cgit v1.2.3-70-g09d2