From 16804860a1d16196dc07e94234c8e0587aa68d9d Mon Sep 17 00:00:00 2001 From: cavesomething Date: Mon, 10 May 2010 18:16:29 +0000 Subject: [PATCH] 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 --- python/dialog/dialog_check.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python/dialog/dialog_check.py b/python/dialog/dialog_check.py index 2eba4b3ae..6318de944 100644 --- a/python/dialog/dialog_check.py +++ b/python/dialog/dialog_check.py @@ -149,8 +149,11 @@ def checkdialoguefile(msgfile, location): for extrapath in extrafiles: newfiles, newrules, newwarnings, newerrors = checkdialoguefile(extrapath, location) print "checked ", newrules, "rules from file", extrapath, "Found ", newerrors, " errors and ", newwarnings,"warnings" + warnings +=newwarnings + rulenumber+=newrules + errors+=newerrors extrafiles = [] - return (1+newfiles, rulenumber+newrules, warnings+newwarnings, errors+newerrors) + return (1+newfiles, rulenumber, warnings, errors) if len(sys.argv) < 2: print "usage: python dialog_check.py path/to/dialogfile.msg"