Browse Source

Fix previous commit

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.2.0-RC1
falkTX 4 years ago
parent
commit
86e5053ed7
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 11 additions and 12 deletions
  1. +11
    -12
      source/modules/sfzero/sfzero/SFZReader.cpp

+ 11
- 12
source/modules/sfzero/sfzero/SFZReader.cpp View File

@@ -70,11 +70,6 @@ void Reader::read(const char *text, unsigned int length)
do do
{ {
c = *++p; c = *++p;
if (c == '*')
{
inComment = true;
continue;
}
if (inComment) if (inComment)
{ {
if (c != '*') if (c != '*')
@@ -84,6 +79,11 @@ void Reader::read(const char *text, unsigned int length)
continue; continue;
inComment = false; inComment = false;
} }
if (c == '*')
{
inComment = true;
continue;
}
if ((c == '\n') || (c == '\r')) if ((c == '\n') || (c == '\r'))
{ {
break; break;
@@ -184,12 +184,7 @@ void Reader::read(const char *text, unsigned int length)
// Skip to end of line or c-style comment. // Skip to end of line or c-style comment.
do do
{ {
c = *p;
if (c == '*')
{
inComment = true;
continue;
}
c = *++p;
if (inComment) if (inComment)
{ {
if (c != '*') if (c != '*')
@@ -199,11 +194,15 @@ void Reader::read(const char *text, unsigned int length)
continue; continue;
inComment = false; inComment = false;
} }
if (c == '*')
{
inComment = true;
continue;
}
if ((c == '\r') || (c == '\n')) if ((c == '\r') || (c == '\n'))
{ {
break; break;
} }
p += 1;
} }
while (p < end); while (p < end);
inComment = false; inComment = false;


Loading…
Cancel
Save