aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Common
diff options
context:
space:
mode:
authormingchen2008-07-25 03:39:38 +0000
committermingchen2008-07-25 03:39:38 +0000
commit6554c7bac53f60caad21623670ae9e595e38acb3 (patch)
treebc450a05f12579e1f0718c10fd90728ce57331bf /OpenSim/Region/ScriptEngine/Common
parent*Added CommandIntentions that is used to describe a console commands hazard. ... (diff)
downloadopensim-SC_OLD-6554c7bac53f60caad21623670ae9e595e38acb3.zip
opensim-SC_OLD-6554c7bac53f60caad21623670ae9e595e38acb3.tar.gz
opensim-SC_OLD-6554c7bac53f60caad21623670ae9e595e38acb3.tar.bz2
opensim-SC_OLD-6554c7bac53f60caad21623670ae9e595e38acb3.tar.xz
*Fixes #0001818: typecast string to float
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/LSL_Types.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs
index 7274fa5..9bde177 100644
--- a/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs
+++ b/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs
@@ -1189,6 +1189,10 @@ namespace OpenSim.Region.ScriptEngine.Common
1189 { 1189 {
1190 return new Vector3(s.m_string); 1190 return new Vector3(s.m_string);
1191 } 1191 }
1192 public static implicit operator LSLFloat(LSLString s)
1193 {
1194 return new LSLFloat(Convert.ToDouble(s.m_string));
1195 }
1192 1196
1193 #endregion 1197 #endregion
1194 1198