Add Culture.FormatProvider to String.Format, like it is done for LSLFloat

Signed-off-by: Melanie Thielker <melanie@t-data.com>
0.8.2-post-fixes
lillith xue 2015-08-22 07:13:50 +02:00 committed by Melanie Thielker
parent 1dae36ff7b
commit 722d00903b
1 changed files with 3 additions and 3 deletions

View File

@ -102,19 +102,19 @@ namespace OpenSim.Region.ScriptEngine.Shared
public override string ToString()
{
string s=String.Format("<{0:0.000000},{1:0.000000},{2:0.000000}>", x, y, z);
string s=String.Format(Culture.FormatProvider,"<{0:0.000000},{1:0.000000},{2:0.000000}>", x, y, z);
return s;
}
public static explicit operator LSLString(Vector3 vec)
{
string s=String.Format("<{0:0.000000},{1:0.000000},{2:0.000000}>", vec.x, vec.y, vec.z);
string s=String.Format(Culture.FormatProvider,"<{0:0.000000},{1:0.000000},{2:0.000000}>", vec.x, vec.y, vec.z);
return new LSLString(s);
}
public static explicit operator string(Vector3 vec)
{
string s=String.Format("<{0:0.000000},{1:0.000000},{2:0.000000}>", vec.x, vec.y, vec.z);
string s=String.Format(Culture.FormatProvider,"<{0:0.000000},{1:0.000000},{2:0.000000}>", vec.x, vec.y, vec.z);
return s;
}