parse with NumberFormatInfo.InvariantInfo everywhere

closes #5240
This commit is contained in:
Matthias Mailänder
2014-05-05 17:28:09 +02:00
parent bf9d3a8082
commit b19d286f56
20 changed files with 132 additions and 86 deletions

View File

@@ -13,6 +13,7 @@ using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Globalization;
using System.Linq;
using System.Reflection;
using System.Runtime.InteropServices;
@@ -235,9 +236,9 @@ namespace OpenRA.Utility
for (var z = 3; z < args.Length - 2; z += 3)
{
var start = int.Parse(args[z]);
var m = int.Parse(args[z + 1]);
var n = int.Parse(args[z + 2]);
var start = int.Parse(args[z], NumberStyles.Integer, NumberFormatInfo.InvariantInfo);
var m = int.Parse(args[z + 1], NumberStyles.Integer, NumberFormatInfo.InvariantInfo);
var n = int.Parse(args[z + 2], NumberStyles.Integer, NumberFormatInfo.InvariantInfo);
for (var i = 0; i < m; i++)
for (var j = 0; j < n; j++)