From 2b13665a04a7d5f6a27f64ac2f4f2168168211af Mon Sep 17 00:00:00 2001 From: brine Date: Sat, 26 Jun 2021 14:24:28 -0400 Subject: [PATCH] temp fix for hosting passworded online games --- octgnFX/Octgn/JodsEngineIntegration.cs | 5 +++++ recentchanges.txt | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/octgnFX/Octgn/JodsEngineIntegration.cs b/octgnFX/Octgn/JodsEngineIntegration.cs index 04e456a166..fc5706bbf0 100644 --- a/octgnFX/Octgn/JodsEngineIntegration.cs +++ b/octgnFX/Octgn/JodsEngineIntegration.cs @@ -27,6 +27,11 @@ public class JodsEngineIntegration public Task HostGame(HostedGame hostedGame, HostedGameSource source, string username, string password) { DebugValidate(hostedGame, true); + //duct-tape fix for a game server bug where online-hosted games lose the chosen password + //TODO: remove this check when the bug is fixed server-side (see git issue ticket #2109) + if (!password.Equals(hostedGame.Password)) + hostedGame.Password = password; + var args = "-h "; if (CommandLineHandler.Instance.DevMode) args += "-x "; diff --git a/recentchanges.txt b/recentchanges.txt index 8b13789179..20d9a66895 100644 --- a/recentchanges.txt +++ b/recentchanges.txt @@ -1 +1 @@ - +Fixed a bug with hosting passworded games online