Multiline Lua comments are --[[ ]], not --[[ ]]--.

This commit is contained in:
MascaraSnake 2016-04-06 20:05:48 +02:00
parent 8617836230
commit a70580ac8c

View file

@ -308,11 +308,9 @@ namespace CodeImp.DoomBuilder.SRB2
char c4 = (char)datareader.ReadByte(); char c4 = (char)datareader.ReadByte();
if (c4 == '[') if (c4 == '[')
{ {
//Skip until ]]-- //Skip until ]]
char c5 = '\0'; char c5 = '\0';
char c6 = '\0'; char c6 = '\0';
char c7 = '\0';
char c8 = '\0';
prevstreamposition = datastream.Position; //mxd prevstreamposition = datastream.Position; //mxd
do do
{ {
@ -323,11 +321,9 @@ namespace CodeImp.DoomBuilder.SRB2
} }
c5 = c6; c5 = c6;
c6 = c7; c6 = (char)datareader.ReadByte();
c7 = c8;
c8 = (char)datareader.ReadByte();
} }
while ((c8 != '-') || (c7 != '-') || (c6 != ']') || (c5 != ']')); while ((c6 != ']') || (c5 != ']'));
c = ' '; c = ' ';
} }
else else