1
0
forked from 0ad/0ad

Fixes minor bugs in reference checker script.

Fixes missing template in pathfinding terrain demo

This was SVN commit r13140.
This commit is contained in:
historic_bruno 2013-02-01 00:26:23 +00:00
parent 1761a6253f
commit 03cc1b3a6b
2 changed files with 9 additions and 3 deletions

Binary file not shown.

View File

@ -76,7 +76,7 @@ sub add_entities
push @roots, $path;
if ($ent->{Entity}{VisualActor})
{
push @deps, [ $path, "art/actors/" . $ent->{Entity}{VisualActor}{Actor}{' content'} ];
push @deps, [ $path, "art/actors/" . $ent->{Entity}{VisualActor}{Actor}{' content'} ] if $ent->{Entity}{VisualActor}{Actor};
push @deps, [ $path, "art/actors/" . $ent->{Entity}{VisualActor}{FoundationActor}{' content'} ] if $ent->{Entity}{VisualActor}{FoundationActor};
}
@ -194,10 +194,16 @@ sub add_scenarios_xml
{
if ($template =~ /^actor\|(.*)$/)
{
# Handle special 'actor|' case
push @deps, [ $f, "art/actors/$1" ];
}
else
{
if ($template =~ /^resource\|(.*)$/)
{
# Handle special 'resource|' case
$template = $1;
}
push @deps, [ $f, "simulation/templates/$template.xml" ];
}
}