Skip to content

Commit

Permalink
Merge pull request #2974 from ZeroK-RTS/sprunk-patch-5
Browse files Browse the repository at this point in the history
Set the "connecting to: xyz" message on early engine load
  • Loading branch information
Licho1 authored Apr 6, 2024
2 parents 3696a91 + 8b332fb commit bc615ac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Shared/LobbyClient/ScriptGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ public static string GenerateHostScript(SpringBattleContext context, int loopbac
// send desync to server
script.AppendFormat(" DumpGameStateOnDesync=1;\n");

// set the "connecting to: xyz" message during early engine load
script.AppendFormat(" ShowServerName={0};\n", context.LobbyStartContext.Title.Replace(';', ' '));

if (loopbackListenPort >0) script.AppendFormat(" AutohostPort={0};\n", loopbackListenPort);
script.AppendLine();
script.AppendFormat(" HostIP={0};\n", context.IpAddress);
Expand Down

0 comments on commit bc615ac

Please sign in to comment.