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