From b92a2616e7e0b807f59f81692bd602f613e8a88e Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 6 Apr 2019 20:15:19 -0300 Subject: Last minute fixes --- testxml/testxml.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'testxml/testxml.py') diff --git a/testxml/testxml.py b/testxml/testxml.py index 90f1e62..049745c 100755 --- a/testxml/testxml.py +++ b/testxml/testxml.py @@ -1435,7 +1435,9 @@ def testMap(mapName, file, path): if mapWidth < 60: name1=file.find("maps/test") name2=file.find("maps/000-1") - if not name1 and not name2: + if name1 == 0 or name2 == 0: + pass + else: showMsgFile(file, "total map width to small: " + str(mapWidth), False) tilesMap = dict() @@ -1697,9 +1699,10 @@ def testMap(mapName, file, path): id1=readAttr(objx, "id", "?", "invalid object ID", False) name1=readAttr(objx, "name", "?", "invalid object name", False) type1=readAttr(objx, "type", "?", "invalid object type", False) - print("Broken object: id %s name %s (%s,%s,%s,%s) type %s", id1, name1, x, y, w, h, type1); + showMsgFile(file, "Broken object: id %s name %s (%s,%s,%s,%s) type %s" % (id1, name1, x, y, w, h, type1), True); except: - showMsgFile(file, "Broken object x/y/h/w data detected", True) + id1=readAttr(objx, "id", "?", "invalid object ID", False) + showMsgFile(file, "Broken object ID %s - x/y/h/w corrupted data detected" % id1, True) def testOverSizedTiles(layer, tiles, file): global warnings, errors -- cgit v1.2.3-70-g09d2