From 0ea029f88dadfb61b53d45fc0183641250c7d6f7 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 24 Jan 2011 06:05:41 +0200 Subject: textxml: Add minimal map size checks. --- testxml/testxml.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'testxml/testxml.py') diff --git a/testxml/testxml.py b/testxml/testxml.py index 899d5f4..4ac55d1 100755 --- a/testxml/testxml.py +++ b/testxml/testxml.py @@ -910,6 +910,11 @@ def testMap(file, path): if mapWidth == 0 or mapHeight == 0 or mapTileWidth == 0 or mapTileHeight == 0: return + if mapWidth < 16: + showMsgFile(file, "map width to small", False) + if mapHeight < 16: + showMsgFile(file, "map height to small", False) + tilesMap = dict() for tileset in dom.getElementsByTagName("tileset"): @@ -1207,8 +1212,8 @@ detectClientData([".", "..", parentDir]) print "Checking xml file syntax" enumDirs(parentDir) loadPaths() -#testItems("/items.xml", iconsDir) -#testMonsters("/monsters.xml") -#testNpcs("/npcs.xml") +testItems("/items.xml", iconsDir) +testMonsters("/monsters.xml") +testNpcs("/npcs.xml") testMaps(mapsDir) showFooter() -- cgit v1.2.3-70-g09d2