Skip to content

Commit d1b2892

Browse files
committed
use CurrentCulture decimal separator for xml weight floats
1 parent 655b3e7 commit d1b2892

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Training.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System;
22
using System.IO;
33
using UnityEngine;
4+
using System.Globalization;
45
#if UNITY_EDITOR
56
using UnityEditor;
67
#endif
@@ -74,7 +75,7 @@ public string NeighborXML(){
7475
if (last == "X" || last == "I" || last == "L" || last == "T" || last == "D"){
7576
sym = last;
7677
}
77-
res += "<tile name=\""+assetpath+"\" symmetry=\""+sym+"\" weight=\"1.0\"/>\n";
78+
res += "<tile name=\""+assetpath+"\" symmetry=\""+sym+"\" weight=\"1"+ System.Globalization.CultureInfo.CurrentCulture.NumberFormat.NumberDecimalSeparator +"0\"/>\n";
7879
}
7980
}
8081
res += " </tiles>\n<neighbors>";

0 commit comments

Comments
 (0)