cosmetics

master
UbitUmarov 2020-02-28 00:53:51 +00:00
parent 22e201bb49
commit 665037e366
1 changed files with 41 additions and 42 deletions

View File

@ -612,9 +612,9 @@ namespace OpenSim.Region.ScriptEngine.Yengine
} }
// Check for option enables. // Check for option enables.
if ((c == ';') && (lastToken is TokenName))
if ((c == ';') && (lastToken is TokenName) && {
(strcasecmp(((TokenName)lastToken).val, "yoptions") == 0)) if(strcasecmp(((TokenName)lastToken).val, "yoptions") == 0)
{ {
options.advFlowCtl = true; options.advFlowCtl = true;
options.tryCatch = true; options.tryCatch = true;
@ -623,9 +623,7 @@ namespace OpenSim.Region.ScriptEngine.Yengine
lastToken.nextToken = null; lastToken.nextToken = null;
continue; continue;
} }
else if ((lastToken.prevToken is TokenName) &&
else if ((c == ';') && (lastToken is TokenName) &&
(lastToken.prevToken is TokenName) &&
(strcasecmp(((TokenName)lastToken.prevToken).val, "yoption") == 0)) (strcasecmp(((TokenName)lastToken.prevToken).val, "yoption") == 0))
{ {
string opt = ((TokenName)lastToken).val; string opt = ((TokenName)lastToken).val;
@ -660,6 +658,7 @@ namespace OpenSim.Region.ScriptEngine.Yengine
lastToken.nextToken = null; lastToken.nextToken = null;
continue; continue;
} }
}
// Lastly, check for delimeters. // Lastly, check for delimeters.
{ {