Incorporate scene teleporting debugging into "debug scene teleport true|false" command
parent
019fc4c1f2
commit
df55fd69af
|
@ -946,26 +946,11 @@ namespace OpenSim
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
MainConsole.Instance.Output("Usage: debug scene scripting|collisions|physics true|false");
|
MainConsole.Instance.Output("Usage: debug scene scripting|collisions|physics|teleport true|false");
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "teleport":
|
|
||||||
foreach(Scene s in m_sceneManager.Scenes)
|
|
||||||
{
|
|
||||||
if (s.DEBUG)
|
|
||||||
{
|
|
||||||
s.DEBUG = false;
|
|
||||||
MainConsole.Instance.Output("Teleport debugging is disabled!");
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
s.DEBUG = true;
|
|
||||||
MainConsole.Instance.Output("Teleport debugging is enabled!");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
MainConsole.Instance.Output("Unknown debug command");
|
MainConsole.Instance.Output("Unknown debug command");
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -65,7 +65,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
#region Fields
|
#region Fields
|
||||||
|
|
||||||
public bool EmergencyMonitoring = false;
|
public bool EmergencyMonitoring = false;
|
||||||
public bool DEBUG = false;
|
public bool DebugTeleporting { get; private set; }
|
||||||
|
|
||||||
public SynchronizeSceneHandler SynchronizeScene;
|
public SynchronizeSceneHandler SynchronizeScene;
|
||||||
public SimStatsReporter StatsReporter;
|
public SimStatsReporter StatsReporter;
|
||||||
|
@ -1074,6 +1074,9 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
if (bool.TryParse(options["physics"], out enablePhysics) && m_physics_enabled != enablePhysics)
|
if (bool.TryParse(options["physics"], out enablePhysics) && m_physics_enabled != enablePhysics)
|
||||||
m_physics_enabled = enablePhysics;
|
m_physics_enabled = enablePhysics;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (options.ContainsKey("teleport"))
|
||||||
|
DebugTeleporting = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int GetInaccurateNeighborCount()
|
public int GetInaccurateNeighborCount()
|
||||||
|
|
|
@ -3895,7 +3895,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
ILandObject land = m_scene.LandChannel.GetLandObject(pos.X, pos.Y);
|
ILandObject land = m_scene.LandChannel.GetLandObject(pos.X, pos.Y);
|
||||||
if (land != null)
|
if (land != null)
|
||||||
{
|
{
|
||||||
if (Scene.DEBUG)
|
if (Scene.DebugTeleporting)
|
||||||
TeleportFlagsDebug();
|
TeleportFlagsDebug();
|
||||||
|
|
||||||
// If we come in via login, landmark or map, we want to
|
// If we come in via login, landmark or map, we want to
|
||||||
|
|
Loading…
Reference in New Issue