From 32d19e8457535c84ec3c82e390be4de6675b7511 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Fri, 5 Jun 2015 22:12:27 +0200 Subject: [PATCH] setmodelindex also relinks --- misc/tools/progs-analyzer.pl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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}); -- 2.39.2