Using ToLowerInvariant instead of ToLower (the game works for Turkish players now!)
http://www.moserware.com/2008/02/does-your-code-pass-turkey-test.html
This commit is contained in:
@@ -87,7 +87,7 @@ namespace Barotrauma
|
||||
}
|
||||
else
|
||||
{
|
||||
string lowerTrimmedVal = value.ToLower().Trim();
|
||||
string lowerTrimmedVal = value.ToLowerInvariant().Trim();
|
||||
if (lowerTrimmedVal == "true")
|
||||
{
|
||||
return true;
|
||||
@@ -186,7 +186,7 @@ namespace Barotrauma
|
||||
{
|
||||
if (attribute == null) return defaultValue;
|
||||
|
||||
string val = attribute.Value.ToLower().Trim();
|
||||
string val = attribute.Value.ToLowerInvariant().Trim();
|
||||
if (val == "true")
|
||||
{
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user