change NPC restriction options default from restricted to all allowed, as master

avinationmerge
UbitUmarov 2015-10-08 02:39:14 +01:00
parent 7fb1063990
commit 3a498b0637
1 changed files with 4 additions and 10 deletions

View File

@ -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;
} }
} }