Also ignore NPCs in short-circuiting region restarts

melanie
Melanie Thielker 2017-03-31 13:50:28 +01:00
parent c0ce746e2d
commit a6ecedb72a
1 changed files with 2 additions and 2 deletions

View File

@ -374,7 +374,7 @@ namespace OpenSim.Region.CoreModules.World.Region
{
foreach (ScenePresence sp in s.GetScenePresences())
{
if (!sp.IsChildAgent)
if (!sp.IsChildAgent && !sp.IsNPC)
agents++;
}
}
@ -383,7 +383,7 @@ namespace OpenSim.Region.CoreModules.World.Region
{
foreach (ScenePresence sp in m_Scene.GetScenePresences())
{
if (!sp.IsChildAgent)
if (!sp.IsChildAgent && !sp.IsNPC)
agents++;
}
}