Fixed, DECORATE parser: editor comments caused the parser to skip next actor definition when used in incorrect scope.

This commit is contained in:
MaxED 2016-05-02 19:16:01 +00:00
parent a57dce9b54
commit 7fef84fb5f

View file

@ -292,6 +292,14 @@ namespace CodeImp.DoomBuilder.ZDoom
default:
{
//mxd. In some special cases (like the whole actor commented using "//") our special comments will be detected here...
if(objdeclaration.StartsWith("$"))
{
// So skip the whole line, then carry on
ReadLine();
break;
}
// Unknown structure!
// Best we can do now is just find the first { and then
// follow the scopes until the matching } is found