Fixed clients assigning a wrong name to submarines with dots in their name (e.g. Sub Mk.Iv), because the part after the dots was considered a file extension and stripped out in the submarine constructor. Closes #472

This commit is contained in:
Joonas Rikkonen
2018-07-16 21:09:01 +03:00
parent 5d342e24ef
commit b61898b16f
@@ -822,7 +822,7 @@ namespace Barotrauma.Networking
}
else
{
submarines.Add(new Submarine(Path.Combine(Submarine.SavePath, subName), subHash, false));
submarines.Add(new Submarine(Path.Combine(Submarine.SavePath, subName) + ".sub", subHash, false));
}
}