mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 02:05:34 +08:00
Incorporate scene teleporting debugging into "debug scene teleport true|false" command
This commit is contained in:
@@ -65,7 +65,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
#region Fields
|
||||
|
||||
public bool EmergencyMonitoring = false;
|
||||
public bool DEBUG = false;
|
||||
public bool DebugTeleporting { get; private set; }
|
||||
|
||||
public SynchronizeSceneHandler SynchronizeScene;
|
||||
public SimStatsReporter StatsReporter;
|
||||
@@ -1064,6 +1064,9 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
if (bool.TryParse(options["physics"], out enablePhysics) && m_physics_enabled != enablePhysics)
|
||||
m_physics_enabled = enablePhysics;
|
||||
}
|
||||
|
||||
if (options.ContainsKey("teleport"))
|
||||
DebugTeleporting = true;
|
||||
}
|
||||
|
||||
public int GetInaccurateNeighborCount()
|
||||
|
||||
@@ -3826,7 +3826,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
ILandObject land = m_scene.LandChannel.GetLandObject(pos.X, pos.Y);
|
||||
if (land != null)
|
||||
{
|
||||
if (Scene.DEBUG)
|
||||
if (Scene.DebugTeleporting)
|
||||
TeleportFlagsDebug();
|
||||
|
||||
// If we come in via login, landmark or map, we want to
|
||||
|
||||
Reference in New Issue
Block a user