change NPC restriction options default from restricted to all allowed, as master
parent
7fb1063990
commit
3a498b0637
|
@ -67,22 +67,16 @@ namespace OpenSim.Region.OptionalModules.World.NPC
|
||||||
m_NPCOptionFlags = NPCOptionsFlags.None;
|
m_NPCOptionFlags = NPCOptionsFlags.None;
|
||||||
if(Enabled)
|
if(Enabled)
|
||||||
{
|
{
|
||||||
bool opt = false;
|
if(config.GetBoolean("AllowNotOwned", true))
|
||||||
|
|
||||||
opt = config.GetBoolean("AllowNotOwned", false);
|
|
||||||
if(opt)
|
|
||||||
m_NPCOptionFlags |= NPCOptionsFlags.AllowNotOwned;
|
m_NPCOptionFlags |= NPCOptionsFlags.AllowNotOwned;
|
||||||
|
|
||||||
opt = config.GetBoolean("AllowSenseAsAvatar", false);
|
if(config.GetBoolean("AllowSenseAsAvatar", true))
|
||||||
if(opt)
|
|
||||||
m_NPCOptionFlags |= NPCOptionsFlags.AllowSenseAsAvatar;
|
m_NPCOptionFlags |= NPCOptionsFlags.AllowSenseAsAvatar;
|
||||||
|
|
||||||
opt = config.GetBoolean("AllowCloneOtherAvatars", false);
|
if(config.GetBoolean("AllowCloneOtherAvatars", true))
|
||||||
if(opt)
|
|
||||||
m_NPCOptionFlags |= NPCOptionsFlags.AllowCloneOtherAvatars;
|
m_NPCOptionFlags |= NPCOptionsFlags.AllowCloneOtherAvatars;
|
||||||
|
|
||||||
opt = config.GetBoolean("NoNPCGroup", false);
|
if(config.GetBoolean("NoNPCGroup", true))
|
||||||
if(opt)
|
|
||||||
m_NPCOptionFlags |= NPCOptionsFlags.NoNPCGroup;
|
m_NPCOptionFlags |= NPCOptionsFlags.NoNPCGroup;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue