From: Rudolf Polzer Date: Fri, 5 Jun 2015 20:12:27 +0000 (+0200) Subject: setmodelindex also relinks X-Git-Tag: xonotic-v0.8.1~14 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=32d19e8457535c84ec3c82e390be4de6675b7511;p=xonotic%2Fxonotic.git setmodelindex also relinks --- diff --git a/misc/tools/progs-analyzer.pl b/misc/tools/progs-analyzer.pl index 5701c3a8..4ab99413 100755 --- a/misc/tools/progs-analyzer.pl +++ b/misc/tools/progs-analyzer.pl @@ -917,7 +917,7 @@ sub find_uninitialized_locals($$) { # TODO check if the entity passed is actually the one on which solid was set. my $func = $s->{a}; - if ($progs->{builtins}{setmodel}{$func} || $progs->{builtins}{setorigin}{$func} || $progs->{builtins}{setsize}{$func}) + if ($progs->{builtins}{setmodel}{$func} || $pogs->{builtins}{setmodelindex}{$func} || $progs->{builtins}{setorigin}{$func} || $progs->{builtins}{setsize}{$func}) { # All is clean. $$state = -1; @@ -927,8 +927,8 @@ sub find_uninitialized_locals($$) if($c->{isreturn}) { if ($$state >= 0) { - ++$warned{$$state}{''}{"Changing .solid without setmodel/setorigin/setsize breaks area grid linking in Quake [write is here]"}; - ++$warned{$ip}{''}{"Changing .solid without setmodel/setorigin/setsize breaks area grid linking in Quake [return is here]"}; + ++$warned{$$state}{''}{"Changing .solid without setmodel/setmodelindex/setorigin/setsize breaks area grid linking in Quake [write is here]"}; + ++$warned{$ip}{''}{"Changing .solid without setmodel/setmodelindex/setorigin/setsize breaks area grid linking in Quake [return is here]"}; } } @@ -1413,8 +1413,8 @@ sub parse_progs($$) } } - print STDERR "Looking for error(), setmodel(), setorigin(), setsize()...\n"; - $p{builtins} = { error => {}, setmodel => {}, setorigin => {}, setsize => {} }; + print STDERR "Looking for error(), setmodel(), setmodelindex(), setorigin(), setsize()...\n"; + $p{builtins} = { error => {}, setmodel => {}, setmodelindex => {}, setorigin => {}, setsize => {} }; for(@{$p{globaldefs}}) { my $name = $p{getstring}($_->{s_name});