diff options
author | Melanie Thielker | 2008-09-24 13:18:06 +0000 |
---|---|---|
committer | Melanie Thielker | 2008-09-24 13:18:06 +0000 |
commit | fb7a29a5efe70a334ccbf6e82e9ee6e7d481beef (patch) | |
tree | 599bf798dae443a82a64f6554694ddbcc845ba98 /OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |
parent | From: alan webb (alan_webb@us.ibm.com) (diff) | |
download | opensim-SC_OLD-fb7a29a5efe70a334ccbf6e82e9ee6e7d481beef.zip opensim-SC_OLD-fb7a29a5efe70a334ccbf6e82e9ee6e7d481beef.tar.gz opensim-SC_OLD-fb7a29a5efe70a334ccbf6e82e9ee6e7d481beef.tar.bz2 opensim-SC_OLD-fb7a29a5efe70a334ccbf6e82e9ee6e7d481beef.tar.xz |
Rename lots of stuff in DNE to reduce source code differences in the
LSL implementation files. Rename lots of stuff in XEngine for the same
reason. Move methods between interfaces. Just refactor stuff.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 552d47c..f40b1a5 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -1629,7 +1629,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
1629 | LSL_Vector currentPos = llGetLocalPos(); | 1629 | LSL_Vector currentPos = llGetLocalPos(); |
1630 | if (llVecDist(currentPos, targetPos) > 10.0f * m_ScriptDistanceFactor) | 1630 | if (llVecDist(currentPos, targetPos) > 10.0f * m_ScriptDistanceFactor) |
1631 | { | 1631 | { |
1632 | targetPos = currentPos + m_ScriptDistanceFactor * 10 * llVecNorm(targetPos - currentPos); | 1632 | targetPos = currentPos + m_ScriptDistanceFactor * 10.0f * llVecNorm(targetPos - currentPos); |
1633 | } | 1633 | } |
1634 | 1634 | ||
1635 | if (part.ParentID != 0) | 1635 | if (part.ParentID != 0) |
@@ -2230,28 +2230,28 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
2230 | public void llMakeExplosion() | 2230 | public void llMakeExplosion() |
2231 | { | 2231 | { |
2232 | m_host.AddScriptLPS(1); | 2232 | m_host.AddScriptLPS(1); |
2233 | NotImplemented("llMakeExplosion"); | 2233 | Deprecated("llMakeExplosion"); |
2234 | // ScriptSleep(100); | 2234 | // ScriptSleep(100); |
2235 | } | 2235 | } |
2236 | 2236 | ||
2237 | public void llMakeFountain() | 2237 | public void llMakeFountain() |
2238 | { | 2238 | { |
2239 | m_host.AddScriptLPS(1); | 2239 | m_host.AddScriptLPS(1); |
2240 | NotImplemented("llMakeFountain"); | 2240 | Deprecated("llMakeFountain"); |
2241 | // ScriptSleep(100); | 2241 | // ScriptSleep(100); |
2242 | } | 2242 | } |
2243 | 2243 | ||
2244 | public void llMakeSmoke() | 2244 | public void llMakeSmoke() |
2245 | { | 2245 | { |
2246 | m_host.AddScriptLPS(1); | 2246 | m_host.AddScriptLPS(1); |
2247 | NotImplemented("llMakeSmoke"); | 2247 | Deprecated("llMakeSmoke"); |
2248 | // ScriptSleep(100); | 2248 | // ScriptSleep(100); |
2249 | } | 2249 | } |
2250 | 2250 | ||
2251 | public void llMakeFire() | 2251 | public void llMakeFire() |
2252 | { | 2252 | { |
2253 | m_host.AddScriptLPS(1); | 2253 | m_host.AddScriptLPS(1); |
2254 | NotImplemented("llMakeFire"); | 2254 | Deprecated("llMakeFire"); |
2255 | // ScriptSleep(100); | 2255 | // ScriptSleep(100); |
2256 | } | 2256 | } |
2257 | 2257 | ||
@@ -2261,7 +2261,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
2261 | 2261 | ||
2262 | if (Double.IsNaN(rot.x) || Double.IsNaN(rot.y) || Double.IsNaN(rot.z) || Double.IsNaN(rot.s)) | 2262 | if (Double.IsNaN(rot.x) || Double.IsNaN(rot.y) || Double.IsNaN(rot.z) || Double.IsNaN(rot.s)) |
2263 | return; | 2263 | return; |
2264 | float dist = (float)llVecMag(llGetPos() - pos); | 2264 | float dist = (float)llVecDist(llGetPos(), pos); |
2265 | 2265 | ||
2266 | if (dist > m_ScriptDistanceFactor * 10.0f) | 2266 | if (dist > m_ScriptDistanceFactor * 10.0f) |
2267 | return; | 2267 | return; |
@@ -2563,7 +2563,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
2563 | public void llSoundPreload() | 2563 | public void llSoundPreload() |
2564 | { | 2564 | { |
2565 | m_host.AddScriptLPS(1); | 2565 | m_host.AddScriptLPS(1); |
2566 | NotImplemented("llSoundPreload"); | 2566 | Deprecated("llSoundPreload"); |
2567 | } | 2567 | } |
2568 | 2568 | ||
2569 | public void llRotLookAt(LSL_Rotation target, double strength, double damping) | 2569 | public void llRotLookAt(LSL_Rotation target, double strength, double damping) |
@@ -5284,7 +5284,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
5284 | public void llSetRemoteScriptAccessPin(int pin) | 5284 | public void llSetRemoteScriptAccessPin(int pin) |
5285 | { | 5285 | { |
5286 | m_host.AddScriptLPS(1); | 5286 | m_host.AddScriptLPS(1); |
5287 | NotImplemented("llSetRemoteScriptAccessPin"); | 5287 | m_host.ScriptAccessPin = pin; |
5288 | } | 5288 | } |
5289 | 5289 | ||
5290 | public void llRemoteLoadScriptPin(string target, string name, int pin, int running, int start_param) | 5290 | public void llRemoteLoadScriptPin(string target, string name, int pin, int running, int start_param) |