Incorporate scene teleporting debugging into "debug scene teleport true|false" command

This commit is contained in:
Justin Clark-Casey (justincc)
2012-03-21 01:13:44 +00:00
parent 9671e43497
commit ab243f4a57
3 changed files with 6 additions and 18 deletions

View File

@@ -937,26 +937,11 @@ namespace OpenSim
}
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;
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:
MainConsole.Instance.Output("Unknown debug command");
break;