Add mingchen's fix for string->float cast to Shared/

0.6.0-stable
Melanie Thielker 2008-07-25 03:47:55 +00:00
parent 06e0e513cf
commit ac9a221993
1 changed files with 4 additions and 0 deletions

View File

@ -1199,6 +1199,10 @@ namespace OpenSim.Region.ScriptEngine.Shared
{
return new Vector3(s.m_string);
}
public static implicit operator LSLFloat(LSLString s)
{
return new LSLFloat(Convert.ToDouble(s.m_string));
}
#endregion