Fix precedence of the "!" logical NOT operator.
We knew that in OpenSim, the bitwise NOT "~" operator's precedence was broken (see <http://opensimulator.org/mantis/view.php?id=3268>), but it appears that the same bug affects the logical NOT operator "!" as well, so it needs parentheses when followed by more expressions.
This commit is contained in:
parent
d8069cd1a9
commit
4ed043d823
8 changed files with 12 additions and 12 deletions
|
@ -107,7 +107,7 @@ default
|
|||
llSetLinkPrimitiveParamsFast(LINK_THIS, [PRIM_TEXTURE, ALL_SIDES, "5748decc-f629-461c-9a36-a35a221fe21f", <1,1,0>, <0,0,0>, 0, PRIM_FULLBRIGHT, ALL_SIDES, TRUE]);
|
||||
}
|
||||
integer everyonePerms = llGetObjectPermMask(MASK_EVERYONE);
|
||||
if (!(everyonePerms & PERM_MOVE) && llGetOwner() == llGetInventoryCreator(llGetScriptName()))
|
||||
if ((everyonePerms & PERM_MOVE) == 0 && llGetOwner() == llGetInventoryCreator(llGetScriptName()))
|
||||
{
|
||||
llOwnerSay("WARNING! AVhelper should be set to 'Anyone Can Move'");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue