X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=dpdefs%2Fsource_compare.pl;h=01dbfd4953c44841687a771994b84e6bce6e22bd;hb=7e8a101c81015e0bdab9fd78704f38f39d5a8ffe;hp=26aee3ab385384b954d47ace108edefe64d35190;hpb=34833b7339f862a01d8ebbcfc09aaacc72c7d202;p=xonotic%2Fdarkplaces.git diff --git a/dpdefs/source_compare.pl b/dpdefs/source_compare.pl index 26aee3ab..01dbfd49 100755 --- a/dpdefs/source_compare.pl +++ b/dpdefs/source_compare.pl @@ -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; }