]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - dpdefs/source_compare.pl
Add more CHECKGLERROR calls, and clean up a few obsolete code scraps.
[xonotic/darkplaces.git] / dpdefs / source_compare.pl
index 26aee3ab385384b954d47ace108edefe64d35190..01dbfd4953c44841687a771994b84e6bce6e22bd 100755 (executable)
@@ -158,7 +158,7 @@ for(<../*.h>, <../*.c>)
                        if(/^\s*\/\//)
                        {
                        }
-                       elsif(/^\s+(?:int|float|string_t|vec3_t)\s+(\w+);\s*(?:\/\/(.*))?/)
+                       elsif(/^\s+(?:int|float|string_t|vec3_t|func_t)\s+(\w+);\s*(?:\/\/(.*))?/)
                        {
                                my $name = $1;
                                my $descr = $2 || "";
@@ -178,6 +178,11 @@ for(<../*.h>, <../*.c>)
                                        if not defined $found;
                        }
                }
+               elsif(/getglobal\w*\(\w+, "(\w+)"\)/)
+               {
+                       # hack for weird DP source 
+                       $vm{csprogs}{globals}{$1} = [0, "DP_CSQC_SPAWNPARTICLE"];
+               }
        }
        close $fh;
 }