From f5eac12a88d2b7fd5011cc3634191e51849f2394 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Mon, 24 Sep 2007 15:56:34 +0000 Subject: * Renamed ScriptConsole to PluginConsole for clarity * Fixed a bug where ODE tries to do a physics update for zero frames. --- OpenSim/Region/Environment/Scenes/Scene.cs | 6 +++--- OpenSim/Region/Environment/Scenes/SceneEvents.cs | 10 +++++----- OpenSim/Region/Environment/Scenes/SceneManager.cs | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) (limited to 'OpenSim/Region/Environment') diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index 4e9cbe3..94d1deb 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs @@ -220,9 +220,9 @@ namespace OpenSim.Region.Environment.Scenes #region Script Handling Methods - public void SendCommandToScripts(string[] args) + public void SendCommandToPlugins(string[] args) { - m_eventManager.TriggerOnScriptConsole(args); + m_eventManager.TriggerOnPluginConsole(args); } #endregion @@ -275,7 +275,7 @@ namespace OpenSim.Region.Environment.Scenes if (m_frame % m_update_physics == 0) UpdatePhysics( - Math.Min(SinceLastFrame.TotalSeconds, 0.001) + Math.Min(SinceLastFrame.TotalSeconds, m_timespan) ); if (m_frame % m_update_entities == 0) diff --git a/OpenSim/Region/Environment/Scenes/SceneEvents.cs b/OpenSim/Region/Environment/Scenes/SceneEvents.cs index 8e8e9a7..4f0ffc7 100644 --- a/OpenSim/Region/Environment/Scenes/SceneEvents.cs +++ b/OpenSim/Region/Environment/Scenes/SceneEvents.cs @@ -37,9 +37,9 @@ namespace OpenSim.Region.Environment.Scenes public event OnParcelPrimCountAddDelegate OnParcelPrimCountAdd; - public delegate void OnScriptConsoleDelegate(string[] args); + public delegate void OnPluginConsoleDelegate(string[] args); - public event OnScriptConsoleDelegate OnScriptConsole; + public event OnPluginConsoleDelegate OnPluginConsole; public delegate void OnShutdownDelegate(); @@ -66,10 +66,10 @@ namespace OpenSim.Region.Environment.Scenes OnPermissionError(user, reason); } - public void TriggerOnScriptConsole(string[] args) + public void TriggerOnPluginConsole(string[] args) { - if (OnScriptConsole != null) - OnScriptConsole(args); + if (OnPluginConsole != null) + OnPluginConsole(args); } public void TriggerOnFrame() diff --git a/OpenSim/Region/Environment/Scenes/SceneManager.cs b/OpenSim/Region/Environment/Scenes/SceneManager.cs index 196976c..0049282 100644 --- a/OpenSim/Region/Environment/Scenes/SceneManager.cs +++ b/OpenSim/Region/Environment/Scenes/SceneManager.cs @@ -82,7 +82,7 @@ namespace OpenSim.Region.Environment.Scenes public void SendCommandToCurrentSceneScripts(string[] cmdparams) { - ForEachCurrentScene(delegate(Scene scene) { scene.SendCommandToScripts(cmdparams); }); + ForEachCurrentScene(delegate(Scene scene) { scene.SendCommandToPlugins(cmdparams); }); } public void SetBypassPermissionsOnCurrentScene(bool bypassPermissions) -- cgit v1.1