Fix the counting of rules, errors and warnings in included files

git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@13166 282e977c-c81d-0410-88c4-b93c2d0d6712
master
cavesomething 2010-05-10 18:16:29 +00:00
parent ba77a3862f
commit 16804860a1
1 changed files with 4 additions and 1 deletions

View File

@ -149,8 +149,11 @@ def checkdialoguefile(msgfile, location):
for extrapath in extrafiles: for extrapath in extrafiles:
newfiles, newrules, newwarnings, newerrors = checkdialoguefile(extrapath, location) newfiles, newrules, newwarnings, newerrors = checkdialoguefile(extrapath, location)
print "checked ", newrules, "rules from file", extrapath, "Found ", newerrors, " errors and ", newwarnings,"warnings" print "checked ", newrules, "rules from file", extrapath, "Found ", newerrors, " errors and ", newwarnings,"warnings"
warnings +=newwarnings
rulenumber+=newrules
errors+=newerrors
extrafiles = [] extrafiles = []
return (1+newfiles, rulenumber+newrules, warnings+newwarnings, errors+newerrors) return (1+newfiles, rulenumber, warnings, errors)
if len(sys.argv) < 2: if len(sys.argv) < 2:
print "usage: python dialog_check.py path/to/dialogfile.msg" print "usage: python dialog_check.py path/to/dialogfile.msg"