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:
parent
2488349a1b
commit
202b4503d1
12 changed files with 59 additions and 59 deletions
|
@ -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";
|
||||
}
|
||||
|
|
|
@ -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")
|
||||
{
|
||||
|
|
|
@ -205,7 +205,7 @@ remove_sequences(key id)
|
|||
running_pointers = llDeleteSubList(running_pointers, index, index);
|
||||
while (sequence)
|
||||
{
|
||||
if ((!IsInteger(llList2String(sequence, 0))) && llList2String(sequence, 0) != "none")
|
||||
if (!IsInteger(llList2String(sequence, 0)) && llList2String(sequence, 0) != "none")
|
||||
{
|
||||
llMessageLinked(LINK_THIS, 90002, llList2String(sequence, 0), id);
|
||||
}
|
||||
|
|
|
@ -132,7 +132,7 @@ state prop
|
|||
|
||||
touch_start(integer touched)
|
||||
{
|
||||
if ((!llGetAttached()) && (prop_type == 2 || prop_type == 1))
|
||||
if (!llGetAttached() && (prop_type == 2 || prop_type == 1))
|
||||
{
|
||||
llRequestExperiencePermissions(llDetectedKey(0), "");
|
||||
}
|
||||
|
@ -212,7 +212,7 @@ state prop
|
|||
{
|
||||
remove = TRUE;
|
||||
}
|
||||
else if (command == "REM_INDEX" || (command == "REM_WORLD" && (!llGetAttached())))
|
||||
else if (command == "REM_INDEX" || (command == "REM_WORLD" && !llGetAttached()))
|
||||
{
|
||||
if (~llListFindList(data, [(string)prop_id]))
|
||||
{
|
||||
|
@ -241,7 +241,7 @@ state prop
|
|||
}
|
||||
}
|
||||
}
|
||||
else if (message == "PROPSEARCH" && (!llGetAttached()))
|
||||
else if (message == "PROPSEARCH" && !llGetAttached())
|
||||
{
|
||||
llSay(comm_channel, "SAVEPROP|" + (string)prop_id);
|
||||
}
|
||||
|
|
|
@ -182,7 +182,7 @@ string parse_text(string say)
|
|||
|
||||
start_sequence(integer index)
|
||||
{
|
||||
no_waits_yet = (sequence_running = TRUE);
|
||||
no_waits_yet = sequence_running = TRUE;
|
||||
SEQUENCE_POINTER = 0;
|
||||
CURRENT_SEQUENCE_NAME = llList2String(SEQUENCE_DATA_NAMES, index);
|
||||
CURRENT_SEQUENCE_ACTIONS = llParseStringKeepNulls(llList2String(SEQUENCE_DATA_ACTIONS, index), ["◆"], []);
|
||||
|
@ -199,7 +199,7 @@ stop_sequence(integer stopSound)
|
|||
sequence_running = FALSE;
|
||||
SEQUENCE_POINTER = -1;
|
||||
llSetTimerEvent(0);
|
||||
if (stopSound && (~llListFindList(CURRENT_SEQUENCE_ACTIONS, ["SOUND"])))
|
||||
if (stopSound && ~llListFindList(CURRENT_SEQUENCE_ACTIONS, ["SOUND"]))
|
||||
{
|
||||
llStopSound();
|
||||
}
|
||||
|
@ -342,7 +342,7 @@ state running
|
|||
else if (num == 90205)
|
||||
{
|
||||
llMessageLinked(LINK_SET, 90005, "", id);
|
||||
playsounds = (!playsounds);
|
||||
playsounds = !playsounds;
|
||||
if (playsounds)
|
||||
{
|
||||
llSay(0, "Sounds ON");
|
||||
|
@ -363,7 +363,7 @@ state running
|
|||
if (index != -1)
|
||||
{
|
||||
start_sequence(index);
|
||||
if ((~llListFindList(CURRENT_SEQUENCE_ACTIONS, ["WAIT"])) && (~llListFindList(CURRENT_SEQUENCE_ACTIONS, ["PLAY"])))
|
||||
if (~llListFindList(CURRENT_SEQUENCE_ACTIONS, ["WAIT"]) && ~llListFindList(CURRENT_SEQUENCE_ACTIONS, ["PLAY"]))
|
||||
{
|
||||
sequence_control();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue