Merged branch master into new-netcode

This commit is contained in:
juanjp600
2016-09-03 21:39:03 -03:00
+3 -1
View File
@@ -65,7 +65,9 @@ namespace Barotrauma.Networking
if (line[0] == '#') if (line[0] == '#')
{ {
string lineval = line.Substring(1, line.Length - 1); string lineval = line.Substring(1, line.Length - 1);
if (lineval.ToLower()=="true" || Convert.ToInt32(lineval)!=0) int intVal = 0;
Int32.TryParse(lineval, out intVal);
if (lineval.ToLower() == "true" || intVal != 0)
{ {
enabled = true; enabled = true;
} }