When determining if a sim can be shut down, ignore NPCs

This commit is contained in:
Melanie Thielker
2017-03-31 13:47:53 +01:00
parent 75915bd0f3
commit c0ce746e2d

View File

@@ -370,7 +370,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController
{
foreach (ScenePresence sp in s.GetScenePresences())
{
if (!sp.IsChildAgent)
if (!sp.IsChildAgent && !sp.IsNPC)
agents++;
}
}
@@ -379,7 +379,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController
{
foreach (ScenePresence sp in rebootedScene.GetScenePresences())
{
if (!sp.IsChildAgent)
if (!sp.IsChildAgent && !sp.IsNPC)
agents++;
}
}