Remove or add parentheses as necessary to improve clarity.

There should be no changes in the code compiled from source directly.
This commit is contained in:
Sei Lisa 2017-08-14 20:01:47 +02:00 committed by Sei-Lisa
parent 2488349a1b
commit 202b4503d1
12 changed files with 59 additions and 59 deletions

View file

@ -366,7 +366,7 @@ state running
{
icon = iconHalf;
}
if (wornThis == 3 && wornSub == 0 || (wornThis == 0 && wornSub == 3) || (wornThis == 3 && wornSub == 3))
if ((wornThis == 3 && wornSub == 0) || (wornThis == 0 && wornSub == 3) || (wornThis == 3 && wornSub == 3))
{
icon = iconFull;
}
@ -394,7 +394,7 @@ state running
msg = "Folder: /" + llDumpList2String(folderPath, "/") + "\n[" + icon + "]\n" + folderInfo;
}
}
if ((!llGetListLength(folderOptions)) && (!llGetListLength(BUTTONS)))
if (!llGetListLength(folderOptions) && !llGetListLength(BUTTONS))
{
msg = "#RLV folder empty";
}

View file

@ -196,7 +196,7 @@ rlv_top_menu()
list menu_items;
string text = "RLV for " + slaveName;
list extra;
if (llGetListLength(SITTING_AVATARS) > 1 || (~llListFindList(DESIGNATIONS_NOW, ["S"])))
if (llGetListLength(SITTING_AVATARS) > 1 || ~llListFindList(DESIGNATIONS_NOW, ["S"]))
{
extra += "[BACK]";
}
@ -207,7 +207,7 @@ rlv_top_menu()
{
if (slaveWearingRelay)
{
if ((~designationIndex) && llList2String(SITTER_DESIGNATIONS_MASTER, designationIndex) == "D")
if (~designationIndex && llList2String(SITTER_DESIGNATIONS_MASTER, designationIndex) == "D")
{
text = slaveName + " has not chosen submissive role.";
}
@ -320,7 +320,7 @@ release(key SLAVE, integer allowUnsit)
llSay(0, llKey2Name(SLAVE) + " was released.");
relay(SLAVE, baseReleaseRestrictions);
relay(SLAVE, "!release");
if (allowUnsit && (~llSubStringIndex(baseReleaseRestrictions, "@unsit=force")))
if (allowUnsit && ~llSubStringIndex(baseReleaseRestrictions, "@unsit=force"))
{
llUnSit(SLAVE);
}
@ -413,7 +413,7 @@ select_submissive_rlv()
{
text = "There are no submissives sitting.";
}
if ((~llListFindList(DESIGNATIONS_NOW, ["S"])) && llGetListLength(SITTING_AVATARS) < llGetListLength(DESIGNATIONS_NOW))
if (~llListFindList(DESIGNATIONS_NOW, ["S"]) && llGetListLength(SITTING_AVATARS) < llGetListLength(DESIGNATIONS_NOW))
{
text += "\n\nCapture = trap a new avatar.";
menu_items += "Capture...";
@ -745,7 +745,7 @@ state running
integer isSittingIndex = llListFindList(SITTING_AVATARS, [id]);
if (~isSittingIndex)
{
if (RLV_ON && (~designationIndex) && llList2String(SITTER_DESIGNATIONS_MASTER, designationIndex) == "S")
if (RLV_ON && ~designationIndex && llList2String(SITTER_DESIGNATIONS_MASTER, designationIndex) == "S")
{
if (subControl)
{
@ -1014,12 +1014,12 @@ state running
}
else if (msg == "Stop" || msg == "Start")
{
TimelockPaused = (!TimelockPaused);
TimelockPaused = !TimelockPaused;
llSetTimerEvent(1);
}
else if (msg == "Hide" || msg == "Show")
{
TimelockHidden = (!TimelockHidden);
TimelockHidden = !TimelockHidden;
}
else
{
@ -1264,7 +1264,7 @@ state running
}
else if (command == "TIMELOCK")
{
defaultTimelock = (TimelockSecUntilRelease = (integer)part0 * 60);
defaultTimelock = TimelockSecUntilRelease = (integer)part0 * 60;
}
else if (command == "ONCAPTURE")
{