diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 69ac517..cd17399 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -361,12 +361,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
361 | 361 | ||
362 | public LSL_Integer llAbs(int i) | 362 | public LSL_Integer llAbs(int i) |
363 | { | 363 | { |
364 | // changed to replicate LSL behaviour whereby minimum int value is returned untouched. | 364 | // changed to replicate LSL behaviour whereby minimum int value is returned untouched. |
365 | m_host.AddScriptLPS(1); | 365 | m_host.AddScriptLPS(1); |
366 | if(i == Int32.MinValue) | 366 | if (i == Int32.MinValue) |
367 | return i; | 367 | return i; |
368 | else | 368 | else |
369 | return (int)Math.Abs(i); | 369 | return (int)Math.Abs(i); |
370 | } | 370 | } |
371 | 371 | ||
372 | public LSL_Float llFabs(double f) | 372 | public LSL_Float llFabs(double f) |