Skip to content

Commit

Permalink
Fix game lobby being translated, bump protocol (#600)
Browse files Browse the repository at this point in the history
  • Loading branch information
GrantBartlett authored Jan 1, 2025
1 parent 7321031 commit 42fe343
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ClientCore/ProgramConstants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static class ProgramConstants

public const string QRES_EXECUTABLE = "qres.dat";

public const string CNCNET_PROTOCOL_REVISION = "R10";
public const string CNCNET_PROTOCOL_REVISION = "R11";
public const string LAN_PROTOCOL_REVISION = "RL7";
public const int LAN_PORT = 1234;
public const int LAN_INGAME_PORT = 1234;
Expand Down
2 changes: 1 addition & 1 deletion DXMainClient/DXGUI/Multiplayer/CnCNet/CnCNetLobby.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1105,7 +1105,7 @@ private string RandomizeChannelName()
{
while (true)
{
string channelName = string.Format("{0}-game{1}".L10N("Client:Main:RamdomChannelName"), gameCollection.GetGameChatChannelNameFromIdentifier(localGameID), new Random().Next(1000000, 9999999));
string channelName = gameCollection.GetGameChatChannelNameFromIdentifier(localGameID) + "-game" + new Random().Next(1000000, 9999999);
int index = lbGameList.HostedGames.FindIndex(c => ((HostedCnCNetGame)c).ChannelName == channelName);
if (index == -1)
return channelName;
Expand Down

0 comments on commit 42fe343

Please sign in to comment.