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


Loading…
Cancel
Save