diff options
author | Melanie Thielker | 2008-07-25 03:47:55 +0000 |
---|---|---|
committer | Melanie Thielker | 2008-07-25 03:47:55 +0000 |
commit | ac9a221993ae7db4d89f7dfe09c02e831032d7b0 (patch) | |
tree | 95fbe642d0caf947c84e2fb9e188d27df9eaed3b /OpenSim/Region | |
parent | Add GetGroupPowers() and a dictionary to hold them to ClientView and (diff) | |
download | opensim-SC_OLD-ac9a221993ae7db4d89f7dfe09c02e831032d7b0.zip opensim-SC_OLD-ac9a221993ae7db4d89f7dfe09c02e831032d7b0.tar.gz opensim-SC_OLD-ac9a221993ae7db4d89f7dfe09c02e831032d7b0.tar.bz2 opensim-SC_OLD-ac9a221993ae7db4d89f7dfe09c02e831032d7b0.tar.xz |
Add mingchen's fix for string->float cast to Shared/
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs index acfe613..73ec9df 100644 --- a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs +++ b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs | |||
@@ -1199,6 +1199,10 @@ namespace OpenSim.Region.ScriptEngine.Shared | |||
1199 | { | 1199 | { |
1200 | return new Vector3(s.m_string); | 1200 | return new Vector3(s.m_string); |
1201 | } | 1201 | } |
1202 | public static implicit operator LSLFloat(LSLString s) | ||
1203 | { | ||
1204 | return new LSLFloat(Convert.ToDouble(s.m_string)); | ||
1205 | } | ||
1202 | 1206 | ||
1203 | #endregion | 1207 | #endregion |
1204 | 1208 | ||