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

@ -265,11 +265,19 @@ namespace CodeImp.DoomBuilder.GZBuilder.GZDoom
// These can also be included several times...
if(parsedlumps.Contains(includelump))
{
ReportError("Already parsed \"" + includelump + "\". Check your " + token + " directives");
return IgnoreErrors;
//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");
return IgnoreErrors;
}
}
parsedlumps.Add(includelump);
else
{
parsedlumps.Add(includelump);
}
continue;
}