diff options
author | SignpostMarv | 2012-08-18 01:17:01 +0100 |
---|---|---|
committer | Melanie | 2012-08-18 13:21:55 +0100 |
commit | 5d7751da891360c665622562f06a15e02fea4922 (patch) | |
tree | 7c0439407e246f298c8258a4b4c4e37c27fd92eb /OpenSim/Region/ScriptEngine/Shared/Api/Implementation/MOD_Api.cs | |
parent | Merge branch 'master' of melanie@opensimulator.org:/var/git/opensim (diff) | |
download | opensim-SC_OLD-5d7751da891360c665622562f06a15e02fea4922.zip opensim-SC_OLD-5d7751da891360c665622562f06a15e02fea4922.tar.gz opensim-SC_OLD-5d7751da891360c665622562f06a15e02fea4922.tar.bz2 opensim-SC_OLD-5d7751da891360c665622562f06a15e02fea4922.tar.xz |
refactoring for Vector3 operator & constructor tweaks
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/MOD_Api.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/MOD_Api.cs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/MOD_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/MOD_Api.cs index 7844c75..929948b 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/MOD_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/MOD_Api.cs | |||
@@ -343,8 +343,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
343 | { | 343 | { |
344 | if (type == typeof(OpenMetaverse.Vector3)) | 344 | if (type == typeof(OpenMetaverse.Vector3)) |
345 | { | 345 | { |
346 | LSL_Vector vect = (LSL_Vector)lslparm; | 346 | return (OpenMetaverse.Vector3)((LSL_Vector)lslparm); |
347 | return new OpenMetaverse.Vector3((float)vect.x,(float)vect.y,(float)vect.z); | ||
348 | } | 347 | } |
349 | } | 348 | } |
350 | 349 | ||
@@ -372,8 +371,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
372 | } | 371 | } |
373 | else if (plist[i] is LSL_Vector) | 372 | else if (plist[i] is LSL_Vector) |
374 | { | 373 | { |
375 | LSL_Vector vect = (LSL_Vector)plist[i]; | 374 | result[i] = (OpenMetaverse.Vector3)( |
376 | result[i] = new OpenMetaverse.Vector3((float)vect.x,(float)vect.y,(float)vect.z); | 375 | (LSL_Vector)plist[i]); |
377 | } | 376 | } |
378 | else | 377 | else |
379 | MODError("unknown LSL list element type"); | 378 | MODError("unknown LSL list element type"); |