From b61898b16f73d156468902889457be47f1a1fc87 Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Mon, 16 Jul 2018 21:09:01 +0300 Subject: [PATCH] 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 --- Barotrauma/BarotraumaClient/Source/Networking/GameClient.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Barotrauma/BarotraumaClient/Source/Networking/GameClient.cs b/Barotrauma/BarotraumaClient/Source/Networking/GameClient.cs index 85a95579e..47c0a4e7a 100644 --- a/Barotrauma/BarotraumaClient/Source/Networking/GameClient.cs +++ b/Barotrauma/BarotraumaClient/Source/Networking/GameClient.cs @@ -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)); } }