Skip to content

Commit

Permalink
temp fix for hosting passworded online games
Browse files Browse the repository at this point in the history
  • Loading branch information
brine committed Jul 24, 2021
1 parent ac9f728 commit 62ec960
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions octgnFX/Octgn/JodsEngineIntegration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ public class JodsEngineIntegration
public Task<bool> 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 ";
Expand Down
2 changes: 1 addition & 1 deletion recentchanges.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@

Fixed a bug with hosting passworded games online

0 comments on commit 62ec960

Please sign in to comment.