diff options
author | Charles Krinke | 2008-08-16 02:28:30 +0000 |
---|---|---|
committer | Charles Krinke | 2008-08-16 02:28:30 +0000 |
commit | 9a6bdd97017b0b852cda23c3c2b8a9189e625d2c (patch) | |
tree | 04658fa0c18ae5895c8cbe65033270835c6d81db /OpenSim/Region/ScriptEngine | |
parent | Refactor a lot of direct calls to OGS1 to use the cached version instead. (diff) | |
download | opensim-SC-9a6bdd97017b0b852cda23c3c2b8a9189e625d2c.zip opensim-SC-9a6bdd97017b0b852cda23c3c2b8a9189e625d2c.tar.gz opensim-SC-9a6bdd97017b0b852cda23c3c2b8a9189e625d2c.tar.bz2 opensim-SC-9a6bdd97017b0b852cda23c3c2b8a9189e625d2c.tar.xz |
Mantis#1963. Thank you kindly, Krtaylor for a patch that solves:
XEngine missing string constructor for LSLInteger and LSLFloat
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs index d15aa81..8326e16 100644 --- a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs +++ b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs | |||
@@ -1254,6 +1254,11 @@ namespace OpenSim.Region.ScriptEngine.Shared | |||
1254 | value = (int)d; | 1254 | value = (int)d; |
1255 | } | 1255 | } |
1256 | 1256 | ||
1257 | public LSLInteger(string s) | ||
1258 | { | ||
1259 | value = (int)double.Parse(s); | ||
1260 | } | ||
1261 | |||
1257 | #endregion | 1262 | #endregion |
1258 | 1263 | ||
1259 | #region Operators | 1264 | #region Operators |
@@ -1451,6 +1456,11 @@ namespace OpenSim.Region.ScriptEngine.Shared | |||
1451 | this.value = d; | 1456 | this.value = d; |
1452 | } | 1457 | } |
1453 | 1458 | ||
1459 | public LSLFloat(string s) | ||
1460 | { | ||
1461 | this.value = double.Parse(s); | ||
1462 | } | ||
1463 | |||
1454 | #endregion | 1464 | #endregion |
1455 | 1465 | ||
1456 | #region Operators | 1466 | #region Operators |