From 7fef84fb5fe598580e8fe5fcccd15262ceef32fe Mon Sep 17 00:00:00 2001 From: MaxED Date: Mon, 2 May 2016 19:16:01 +0000 Subject: [PATCH] Fixed, DECORATE parser: editor comments caused the parser to skip next actor definition when used in incorrect scope. --- Source/Core/ZDoom/DecorateParser.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Source/Core/ZDoom/DecorateParser.cs b/Source/Core/ZDoom/DecorateParser.cs index 51370c48..d80dbf58 100644 --- a/Source/Core/ZDoom/DecorateParser.cs +++ b/Source/Core/ZDoom/DecorateParser.cs @@ -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