mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
Mantis#1963. Thank you kindly, Krtaylor for a patch that solves:
XEngine missing string constructor for LSLInteger and LSLFloat
This commit is contained in:
@@ -1254,6 +1254,11 @@ namespace OpenSim.Region.ScriptEngine.Shared
|
||||
value = (int)d;
|
||||
}
|
||||
|
||||
public LSLInteger(string s)
|
||||
{
|
||||
value = (int)double.Parse(s);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Operators
|
||||
@@ -1451,6 +1456,11 @@ namespace OpenSim.Region.ScriptEngine.Shared
|
||||
this.value = d;
|
||||
}
|
||||
|
||||
public LSLFloat(string s)
|
||||
{
|
||||
this.value = double.Parse(s);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Operators
|
||||
|
||||
Reference in New Issue
Block a user