diff options
author | Diva Canto | 2009-08-13 06:31:24 -0700 |
---|---|---|
committer | Diva Canto | 2009-08-13 06:31:24 -0700 |
commit | 6a0f7c22753a4e7e9d08e947d9fa4b6d98c1bf54 (patch) | |
tree | b9dd4ca908d79a74abcd722d4fc5e7d26d01fd30 /OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | |
parent | Merge branch 'master' of ssh://diva@opensimulator.org/var/git/opensim (diff) | |
parent | Some small fixes (diff) | |
download | opensim-SC_OLD-6a0f7c22753a4e7e9d08e947d9fa4b6d98c1bf54.zip opensim-SC_OLD-6a0f7c22753a4e7e9d08e947d9fa4b6d98c1bf54.tar.gz opensim-SC_OLD-6a0f7c22753a4e7e9d08e947d9fa4b6d98c1bf54.tar.bz2 opensim-SC_OLD-6a0f7c22753a4e7e9d08e947d9fa4b6d98c1bf54.tar.xz |
Merge branch 'master' of ssh://diva@opensimulator.org/var/git/opensim
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectPart.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | 49 |
1 files changed, 23 insertions, 26 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index 61dfa52..3646811 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | |||
@@ -1098,30 +1098,29 @@ if (m_shape != null) { | |||
1098 | } | 1098 | } |
1099 | } | 1099 | } |
1100 | 1100 | ||
1101 | private void handleTimerAccounting(uint localID, double interval) | 1101 | // TODO: unused: |
1102 | { | 1102 | // private void handleTimerAccounting(uint localID, double interval) |
1103 | if (localID == LocalId) | 1103 | // { |
1104 | { | 1104 | // if (localID == LocalId) |
1105 | 1105 | // { | |
1106 | float sec = (float)interval; | 1106 | // float sec = (float)interval; |
1107 | if (m_parentGroup != null) | 1107 | // if (m_parentGroup != null) |
1108 | { | 1108 | // { |
1109 | if (sec == 0) | 1109 | // if (sec == 0) |
1110 | { | 1110 | // { |
1111 | if (m_parentGroup.scriptScore + 0.001f >= float.MaxValue - 0.001) | 1111 | // if (m_parentGroup.scriptScore + 0.001f >= float.MaxValue - 0.001) |
1112 | m_parentGroup.scriptScore = 0; | 1112 | // m_parentGroup.scriptScore = 0; |
1113 | 1113 | // | |
1114 | m_parentGroup.scriptScore += 0.001f; | 1114 | // m_parentGroup.scriptScore += 0.001f; |
1115 | return; | 1115 | // return; |
1116 | } | 1116 | // } |
1117 | 1117 | // | |
1118 | if (m_parentGroup.scriptScore + (0.001f / sec) >= float.MaxValue - (0.001f / sec)) | 1118 | // if (m_parentGroup.scriptScore + (0.001f / sec) >= float.MaxValue - (0.001f / sec)) |
1119 | m_parentGroup.scriptScore = 0; | 1119 | // m_parentGroup.scriptScore = 0; |
1120 | m_parentGroup.scriptScore += (0.001f / sec); | 1120 | // m_parentGroup.scriptScore += (0.001f / sec); |
1121 | } | 1121 | // } |
1122 | 1122 | // } | |
1123 | } | 1123 | // } |
1124 | } | ||
1125 | 1124 | ||
1126 | #endregion Private Methods | 1125 | #endregion Private Methods |
1127 | 1126 | ||
@@ -1248,7 +1247,6 @@ if (m_shape != null) { | |||
1248 | } | 1247 | } |
1249 | } | 1248 | } |
1250 | 1249 | ||
1251 | |||
1252 | /// <summary> | 1250 | /// <summary> |
1253 | /// hook to the physics scene to apply angular impulse | 1251 | /// hook to the physics scene to apply angular impulse |
1254 | /// This is sent up to the group, which then finds the root prim | 1252 | /// This is sent up to the group, which then finds the root prim |
@@ -1809,7 +1807,6 @@ if (m_shape != null) { | |||
1809 | m_parentGroup.SetHoverHeight(0f, PIDHoverType.Ground, 0f); | 1807 | m_parentGroup.SetHoverHeight(0f, PIDHoverType.Ground, 0f); |
1810 | } | 1808 | } |
1811 | 1809 | ||
1812 | |||
1813 | public virtual void OnGrab(Vector3 offsetPos, IClientAPI remoteClient) | 1810 | public virtual void OnGrab(Vector3 offsetPos, IClientAPI remoteClient) |
1814 | { | 1811 | { |
1815 | } | 1812 | } |