aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes
diff options
context:
space:
mode:
authorAdam Frisby2007-09-24 15:56:34 +0000
committerAdam Frisby2007-09-24 15:56:34 +0000
commitf5eac12a88d2b7fd5011cc3634191e51849f2394 (patch)
treefb635d8bfe028d3626658805eb8c03c14e3be192 /OpenSim/Region/Environment/Scenes
parent* Refactored the central update loop - now easier to work with. Switching fro... (diff)
downloadopensim-SC-f5eac12a88d2b7fd5011cc3634191e51849f2394.zip
opensim-SC-f5eac12a88d2b7fd5011cc3634191e51849f2394.tar.gz
opensim-SC-f5eac12a88d2b7fd5011cc3634191e51849f2394.tar.bz2
opensim-SC-f5eac12a88d2b7fd5011cc3634191e51849f2394.tar.xz
* Renamed ScriptConsole to PluginConsole for clarity
* Fixed a bug where ODE tries to do a physics update for zero frames.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes')
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.cs6
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneEvents.cs10
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneManager.cs2
3 files changed, 9 insertions, 9 deletions
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
220 220
221 #region Script Handling Methods 221 #region Script Handling Methods
222 222
223 public void SendCommandToScripts(string[] args) 223 public void SendCommandToPlugins(string[] args)
224 { 224 {
225 m_eventManager.TriggerOnScriptConsole(args); 225 m_eventManager.TriggerOnPluginConsole(args);
226 } 226 }
227 227
228 #endregion 228 #endregion
@@ -275,7 +275,7 @@ namespace OpenSim.Region.Environment.Scenes
275 275
276 if (m_frame % m_update_physics == 0) 276 if (m_frame % m_update_physics == 0)
277 UpdatePhysics( 277 UpdatePhysics(
278 Math.Min(SinceLastFrame.TotalSeconds, 0.001) 278 Math.Min(SinceLastFrame.TotalSeconds, m_timespan)
279 ); 279 );
280 280
281 if (m_frame % m_update_entities == 0) 281 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
37 37
38 public event OnParcelPrimCountAddDelegate OnParcelPrimCountAdd; 38 public event OnParcelPrimCountAddDelegate OnParcelPrimCountAdd;
39 39
40 public delegate void OnScriptConsoleDelegate(string[] args); 40 public delegate void OnPluginConsoleDelegate(string[] args);
41 41
42 public event OnScriptConsoleDelegate OnScriptConsole; 42 public event OnPluginConsoleDelegate OnPluginConsole;
43 43
44 public delegate void OnShutdownDelegate(); 44 public delegate void OnShutdownDelegate();
45 45
@@ -66,10 +66,10 @@ namespace OpenSim.Region.Environment.Scenes
66 OnPermissionError(user, reason); 66 OnPermissionError(user, reason);
67 } 67 }
68 68
69 public void TriggerOnScriptConsole(string[] args) 69 public void TriggerOnPluginConsole(string[] args)
70 { 70 {
71 if (OnScriptConsole != null) 71 if (OnPluginConsole != null)
72 OnScriptConsole(args); 72 OnPluginConsole(args);
73 } 73 }
74 74
75 public void TriggerOnFrame() 75 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
82 82
83 public void SendCommandToCurrentSceneScripts(string[] cmdparams) 83 public void SendCommandToCurrentSceneScripts(string[] cmdparams)
84 { 84 {
85 ForEachCurrentScene(delegate(Scene scene) { scene.SendCommandToScripts(cmdparams); }); 85 ForEachCurrentScene(delegate(Scene scene) { scene.SendCommandToPlugins(cmdparams); });
86 } 86 }
87 87
88 public void SetBypassPermissionsOnCurrentScene(bool bypassPermissions) 88 public void SetBypassPermissionsOnCurrentScene(bool bypassPermissions)