diff options
author | Makopoppo | 2011-07-05 22:19:26 +0900 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-07-09 01:27:12 +0100 |
commit | df586c9d2502523395b53d48ddd7dda8832c7a08 (patch) | |
tree | a93b6b61850185cc704fe12349b15b541c6e60da | |
parent | Fix osMatchString() so that it reports all instance of pattern matches, not j... (diff) | |
download | opensim-SC_OLD-df586c9d2502523395b53d48ddd7dda8832c7a08.zip opensim-SC_OLD-df586c9d2502523395b53d48ddd7dda8832c7a08.tar.gz opensim-SC_OLD-df586c9d2502523395b53d48ddd7dda8832c7a08.tar.bz2 opensim-SC_OLD-df586c9d2502523395b53d48ddd7dda8832c7a08.tar.xz |
Raw int numbers (ex.LSL Constants) are displayed like "1.000000" when type cast to string
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs index e0a4014..bf66b12 100644 --- a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs +++ b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs | |||
@@ -1396,6 +1396,12 @@ namespace OpenSim.Region.ScriptEngine.Shared | |||
1396 | string s = String.Format(Culture.FormatProvider, "{0:0.000000}", f.value); | 1396 | string s = String.Format(Culture.FormatProvider, "{0:0.000000}", f.value); |
1397 | m_string=s; | 1397 | m_string=s; |
1398 | } | 1398 | } |
1399 | |||
1400 | public LSLString(int i) | ||
1401 | { | ||
1402 | string s = String.Format("{0}", i); | ||
1403 | m_string = s; | ||
1404 | } | ||
1399 | 1405 | ||
1400 | public LSLString(LSLInteger i) | 1406 | public LSLString(LSLInteger i) |
1401 | { | 1407 | { |
@@ -1469,6 +1475,11 @@ namespace OpenSim.Region.ScriptEngine.Shared | |||
1469 | { | 1475 | { |
1470 | return new LSLString(d); | 1476 | return new LSLString(d); |
1471 | } | 1477 | } |
1478 | |||
1479 | static public explicit operator LSLString(int i) | ||
1480 | { | ||
1481 | return new LSLString(i); | ||
1482 | } | ||
1472 | 1483 | ||
1473 | public static explicit operator LSLString(LSLFloat f) | 1484 | public static explicit operator LSLString(LSLFloat f) |
1474 | { | 1485 | { |