Fixed, ACS parser: the names of include files bundled with acc compiler should be also checked for duplicate includes from user scripts, unless those user scripts are libraries.

This commit is contained in:
MaxED 2016-03-08 21:14:24 +00:00
parent 49525177e3
commit e561d13048

View file

@ -264,12 +264,20 @@ namespace CodeImp.DoomBuilder.GZBuilder.GZDoom
{ {
// These can also be included several times... // These can also be included several times...
if(parsedlumps.Contains(includelump)) if(parsedlumps.Contains(includelump))
{
//INFO: files included or imported inside a library are not visible to the code outside it
//and must be included/imported separately
if(includetype != IncludeType.LIBRARY)
{ {
ReportError("Already parsed \"" + includelump + "\". Check your " + token + " directives"); ReportError("Already parsed \"" + includelump + "\". Check your " + token + " directives");
return IgnoreErrors; return IgnoreErrors;
} }
}
else
{
parsedlumps.Add(includelump); parsedlumps.Add(includelump);
}
continue; continue;
} }