adjust RLV plugin to be acceptable for OpenSim's limitations on where to place the assignment operator

This commit is contained in:
ft 2018-08-18 00:21:02 +02:00 committed by Sei-Lisa
parent efe6929206
commit 799a557091
2 changed files with 3 additions and 3 deletions

View file

@ -174,8 +174,8 @@ state running
product = llList2String(data, 2);
llListenRemove(menu_handle);
llListenRemove(GETSTATUShandle);
menu_handle = llListen(menu_channel = ((integer)llFrand(0x7FFFFF80) + 1) * -1, "", CONTROLLER, ""); // 7FFFFF80 = max float < 2^31
GETSTATUShandle = llListen(RELAY_GETSTATUS_CHANNEL = (integer)llFrand(999999936), "", "", ""); // 999999936 = max float < 1e9
menu_handle = llListen((menu_channel = ((integer)llFrand(0x7FFFFF80) + 1) * -1), "", CONTROLLER, ""); // 7FFFFF80 = max float < 2^31
GETSTATUShandle = llListen((RELAY_GETSTATUS_CHANNEL = (integer)llFrand(999999936)), "", "", ""); // 999999936 = max float < 1e9
if (num == 90208)
{
main_menu();

View file

@ -114,7 +114,7 @@ controller_menu(key id)
dialog(string text, list menu_items, key id)
{
llListenRemove(menu_handle);
menu_handle = llListen(menu_channel = ((integer)llFrand(0x7FFFFF80) + 1) * -1, "", id, ""); // 7FFFFF80 = max float < 2^31
menu_handle = llListen((menu_channel = ((integer)llFrand(0x7FFFFF80) + 1) * -1), "", id, ""); // 7FFFFF80 = max float < 2^31
llDialog(id, product + " " + version + "\n\n" + text + "\n", order_buttons(menu_items), menu_channel);
llSetTimerEvent(120);
}