More optimizations.
This commit is contained in:
parent
90bd72e1ff
commit
cbb82150db
2 changed files with 7 additions and 6 deletions
|
@ -62,7 +62,7 @@ set_text()
|
|||
text += "\n \n ";
|
||||
}
|
||||
text = t + " " + (string)helper_index + "\n" + text;
|
||||
llSetLinkPrimitiveParamsFast(llGetLinkNumber(), [PRIM_TEXT, text, llList2Vector(colors, helper_index % llGetListLength(colors)), 1]);
|
||||
llSetText(text, llList2Vector(colors, helper_index % llGetListLength(colors)), 1);
|
||||
}
|
||||
|
||||
setup()
|
||||
|
@ -123,7 +123,7 @@ default
|
|||
{
|
||||
llSetTimerEvent(0);
|
||||
llSetText("", <1,1,1>, 1);
|
||||
if (llList2Key(llGetObjectDetails(llGetKey(), [OBJECT_CREATOR]), 0) == llGetInventoryCreator(llGetScriptName()))
|
||||
if (llGetCreator() == llGetInventoryCreator(llGetScriptName()))
|
||||
{
|
||||
llSetLinkPrimitiveParamsFast(LINK_THIS, [PRIM_SIZE, ball_size]);
|
||||
}
|
||||
|
|
|
@ -159,7 +159,8 @@ adjust_pose_menu()
|
|||
|
||||
integer IsInteger(string data)
|
||||
{
|
||||
return llParseString2List((string)llParseString2List(data, ["8", "9"], []), ["0", "1", "2", "3", "4", "5", "6", "7"], []) == [] && data != "";
|
||||
// This should allow for leading zeros, thus the "1"
|
||||
return data != "" && (string)((integer)("1" + data)) == "1" + data;
|
||||
}
|
||||
|
||||
wipe_sit_targets()
|
||||
|
@ -216,10 +217,10 @@ sittargets()
|
|||
list data = llParseStringKeepNulls(desc, ["-"], []);
|
||||
if (llGetListLength(data) == 2 && IsInteger(llList2String(data, 0)) && IsInteger(llList2String(data, 1)))
|
||||
{
|
||||
if ((integer)llList2String(data, 0) == SET)
|
||||
if (llList2Integer(data, 0) == SET)
|
||||
{
|
||||
SITTERS_SITTARGETS = llListReplaceList(SITTERS_SITTARGETS, [i], (integer)llList2String(data, 1), (integer)llList2String(data, 1));
|
||||
ASSIGNED_SITTARGETS = llListReplaceList(ASSIGNED_SITTARGETS, [TRUE], (integer)llList2String(data, 1), (integer)llList2String(data, 1));
|
||||
SITTERS_SITTARGETS = llListReplaceList(SITTERS_SITTARGETS, [i], llList2Integer(data, 1), llList2Integer(data, 1));
|
||||
ASSIGNED_SITTARGETS = llListReplaceList(ASSIGNED_SITTARGETS, [TRUE], llList2Integer(data, 1), llList2Integer(data, 1));
|
||||
if (llListFindList(ASSIGNED_SITTARGETS, [FALSE]) == -1)
|
||||
{
|
||||
jump end;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue