Undo some hand optimizations.

Many of them cause problems with OpenSim.

All of them are applied by the optimizer, except (str="")+str, which produces gains only in LSO, not in Mono, and doesn't work in OpenSim.

A few are undone only for clarity, relying on the fact that the optimizer will apply them again.
This commit is contained in:
Sei Lisa 2017-08-14 20:57:57 +02:00 committed by Sei-Lisa
parent 202b4503d1
commit 610890951d
12 changed files with 70 additions and 70 deletions

View file

@ -294,7 +294,7 @@ integer prop_menu(integer return_pages, key av)
string strReplace(string str, string search, string replace)
{
return llDumpList2String(llParseStringKeepNulls((str = "") + str, [search], []), replace);
return llDumpList2String(llParseStringKeepNulls(str, [search], []), replace);
}
naming()

View file

@ -261,7 +261,7 @@ remove_sitter_props_by_pose_group(string msg)
for (; i < llGetListLength(props); i++)
{
string prop_group = llList2String(prop_groups, llList2Integer(props, i));
if (!~llListFindList(groups, [prop_group]))
if (llListFindList(groups, [prop_group]) == -1)
{
groups += prop_group;
remove_props_by_group(llListFindList(sequential_prop_groups, [prop_group]));
@ -394,7 +394,7 @@ default
if (llList2Key(SITTERS, i) == sitting_av_or_sitter || id == "" || (string)sitting_av_or_sitter == (string)i)
{
integer index = llListFindList(prop_triggers, [(string)i + "|" + msg]);
if (!~index)
if (index == -1)
{
if (llGetInventoryType(main_script) != INVENTORY_SCRIPT)
{