ACS parser: fixed a bug that prevented scripts from being recognized when the previous line ended with an empty line comment

This commit is contained in:
biwa 2020-10-24 21:23:06 +02:00
parent ee6aad4150
commit 0fc2296ce9

View file

@ -252,7 +252,7 @@ namespace CodeImp.DoomBuilder.ZDoom
if(skipeditorcomments || c3 != '$') //mxd. Added skipeditorcomments
{
// Skip entire line
char c4 = ' ';
char c4 = c3;
while((c4 != '\n') && (datastream.Position < datastream.Length)) { c4 = (char)datareader.ReadByte(); }
c = c4;
}