]> git.xonotic.org Git - xonotic/xonotic.git/blobdiff - misc/tools/cfgapply.pl
cfgapply: also handle non-set commands
[xonotic/xonotic.git] / misc / tools / cfgapply.pl
index 822246ab07191ef5cfcd86762301eb601310db2e..e714bc5d18ae66e3da0eeb8dbe31614cfafbc4c4 100644 (file)
@@ -11,8 +11,9 @@ while(<>)
 {
        chomp;
        s/\r//g;
+       s/\/\/.*//;
 
-       if(/^\s*(?:set\s+|seta\s+)(\S+)/)
+       if(/^\s*(?:set\s+|seta\s+|)(\S+)/)
        {
                if(exists $cvar2line{$1})
                {