From ccac8de7232d66a7bf06b62a55a383b196026652 Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Sat, 2 Dec 2017 15:42:52 +0200 Subject: [PATCH] Removed unused NetConfig constants and leftover debug code in GameServer --- .../Source/Networking/GameServer.cs | 5 ----- .../Source/Networking/NetConfig.cs | 15 ++------------- 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/Barotrauma/BarotraumaShared/Source/Networking/GameServer.cs b/Barotrauma/BarotraumaShared/Source/Networking/GameServer.cs index 12c5ea68e..e62b9a155 100644 --- a/Barotrauma/BarotraumaShared/Source/Networking/GameServer.cs +++ b/Barotrauma/BarotraumaShared/Source/Networking/GameServer.cs @@ -1862,11 +1862,6 @@ namespace Barotrauma.Networking private void FileTransferChanged(FileSender.FileTransferOut transfer) { - if (connectedClients.Any(c=> c.Connection == null)) - { - int sdfgsdfg = 1; - } - Client recipient = connectedClients.Find(c => c.Connection == transfer.Connection); #if CLIENT UpdateFileTransferIndicator(recipient); diff --git a/Barotrauma/BarotraumaShared/Source/Networking/NetConfig.cs b/Barotrauma/BarotraumaShared/Source/Networking/NetConfig.cs index fe834b55e..97afc0136 100644 --- a/Barotrauma/BarotraumaShared/Source/Networking/NetConfig.cs +++ b/Barotrauma/BarotraumaShared/Source/Networking/NetConfig.cs @@ -3,10 +3,7 @@ static class NetConfig { public const int DefaultPort = 14242; - - //UpdateEntity networkevents aren't sent to clients if they're further than this from the entity - public const float UpdateEntityDistance = 2500.0f; - + public const int MaxPlayers = 16; public static string MasterServerUrl = GameMain.Config.MasterServerUrl; @@ -20,14 +17,6 @@ //send a position update to clients (in sim units) public const float ItemPosUpdateDistance = 2.0f; - public const float LargeCharacterUpdateInterval = 5.0f; - - public const float DeleteDisconnectedTime = 10.0f; - - public const float IdSendInterval = 0.2f; - public const float RerequestInterval = 0.2f; - - public const int ReliableMessageBufferSize = 500; - public const int ResendAttempts = 10; + public const float DeleteDisconnectedTime = 10.0f; } }