From 76467f2cdd66d3ffa4909e939eda7b46f8cdd849 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 25 May 2021 10:41:33 -0300 Subject: Remove false-positive --- testxml/testxml.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/testxml/testxml.py b/testxml/testxml.py index 7b43d74..6252847 100755 --- a/testxml/testxml.py +++ b/testxml/testxml.py @@ -1312,7 +1312,6 @@ def testParticles(id, node, nodeName, src): def testSounds(id, node, type): global errors - havemiss = False for sound in node.getElementsByTagName("sound"): try: event = sound.attributes["event"].value @@ -1329,12 +1328,6 @@ def testSounds(id, node, type): if event != "hit" and event != "miss": print "error: incorrect sound event name " + event + " in id=" + id errors = errors + 1 - ## FIXME: Is this even necessary? - if event == "strike" or event == "miss": - if havemiss: - print "error: miss and strike attributes at same time in id=" + id - errors = errors + 1 - havemiss = True testSound(sound.childNodes[0].data, sfxDir, "") -- cgit v1.2.3-70-g09d2