Add code that forces an error if compiled in LSO to all scripts

This should prevent accidents when saving in inventory in the official viewer.
This commit is contained in:
Sei Lisa 2018-05-18 00:28:02 +02:00 committed by Sei-Lisa
parent 9c84243390
commit f1ec6bde26
22 changed files with 46 additions and 32 deletions

View file

@ -24,10 +24,10 @@ integer active_script_channel;
integer menu_channel;
integer menu_handle;
list SIT_TYPES = ["ALL", "OWNER", "GROUP"];
list MENU_TYPES = ["ALL", "OWNER", "GROUP"];
integer SIT_INDEX;
integer MENU_INDEX;
string lastmenu;
list MENU_TYPES = [lastmenu]; //OSS::list MENU_TYPES; // Force error in LSO
integer pass_security(key id, string context)
{
@ -134,6 +134,7 @@ default
{
state_entry()
{
MENU_TYPES = SIT_TYPES;
llMessageLinked(LINK_SET, 90202, (string)check_for_RLV(), "");
}