summaryrefslogtreecommitdiff
path: root/testxml
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-04-06 20:15:19 -0300
committerJesusaves <cpntb1@ymail.com>2019-04-06 20:15:19 -0300
commitb92a2616e7e0b807f59f81692bd602f613e8a88e (patch)
tree20f7c2e594b66c8af8cfffede1acf55a2621e867 /testxml
parenta4acf897d0b9087f61d1de51d67a1e89250670dc (diff)
downloadtools-b92a2616e7e0b807f59f81692bd602f613e8a88e.tar.gz
tools-b92a2616e7e0b807f59f81692bd602f613e8a88e.tar.bz2
tools-b92a2616e7e0b807f59f81692bd602f613e8a88e.tar.xz
tools-b92a2616e7e0b807f59f81692bd602f613e8a88e.zip
Last minute fixes
Diffstat (limited to 'testxml')
-rwxr-xr-xtestxml/testxml.py9
1 files changed, 6 insertions, 3 deletions
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