Improve OpenSim-friendliness.

This commit is contained in:
Sei Lisa 2017-10-31 23:17:38 +01:00 committed by Sei-Lisa
parent bf8f10bfe6
commit 08263c921e
8 changed files with 42 additions and 42 deletions

View file

@ -109,7 +109,7 @@ integer get_point(string text)
integer i;
for (i = 1; i < llGetListLength(ATTACH_POINTS); i = i + 2)
{
if (~llSubStringIndex(llToUpper(text), llToUpper(llList2String(ATTACH_POINTS, i))))
if (llSubStringIndex(llToUpper(text), llToUpper(llList2String(ATTACH_POINTS, i))) != -1)
{
return llList2Integer(ATTACH_POINTS, i - 1);
}
@ -387,7 +387,7 @@ default
integer flag;
for (; i < llGetListLength(SITTERS); i++)
{
if (~llListFindList(prop_triggers, [(string)i + "|" + msg]))
if (llListFindList(prop_triggers, [(string)i + "|" + msg]) != -1)
{
flag = TRUE;
}
@ -440,7 +440,7 @@ default
remove_props_by_sitter(msg, FALSE);
remove_worn(id);
integer index = llListFindList(SITTERS, [id]);
if (~index)
if (index != -1)
{
SITTERS = llListReplaceList(SITTERS, [NULL_KEY], index, index);
}
@ -650,7 +650,7 @@ default
{
WARN = (integer)llList2String(parts, 0);
}
notecard_query = llGetNotecardLine(notecard_name, notecard_line += 1);
notecard_query = llGetNotecardLine(notecard_name, ++notecard_line);
}
}
}