From c69b817d62fe90e17e748e190d055b7ee511ff20 Mon Sep 17 00:00:00 2001 From: Garry Newman Date: Mon, 27 May 2019 15:23:56 +0100 Subject: [PATCH] Fixed server not being listed on master server --- Facepunch.Steamworks/Structs/ServerInit.cs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Facepunch.Steamworks/Structs/ServerInit.cs b/Facepunch.Steamworks/Structs/ServerInit.cs index 519e67a..02e3604 100644 --- a/Facepunch.Steamworks/Structs/ServerInit.cs +++ b/Facepunch.Steamworks/Structs/ServerInit.cs @@ -36,17 +36,21 @@ namespace Steamworks /// public string GameDescription; + /// + /// Is a dedicated server + /// + public bool DedicatedServer; - public SteamServerInit( string modDir, string gameDesc ) + + public SteamServerInit( string modDir, string gameDesc ) { - ModDir = modDir; + DedicatedServer = true; + ModDir = modDir; GameDescription = gameDesc; GamePort = 27015; QueryPort = 27016; Secure = true; VersionString = "1.0.0.0"; - ModDir = "unset"; - GameDescription = "unset"; IpAddress = null; SteamPort = 0; }