From 1a2c2abb783097d05056d4806d0152be1bc3853d Mon Sep 17 00:00:00 2001 From: JustArchi Date: Sun, 4 Mar 2018 07:29:27 +0100 Subject: [PATCH] Allow one more game to be played when custom gameName is used --- ArchiSteamFarm/ArchiHandler.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ArchiSteamFarm/ArchiHandler.cs b/ArchiSteamFarm/ArchiHandler.cs index 9af060287..ba331f4dc 100644 --- a/ArchiSteamFarm/ArchiHandler.cs +++ b/ArchiSteamFarm/ArchiHandler.cs @@ -106,6 +106,8 @@ namespace ArchiSteamFarm { ClientMsgProtobuf request = new ClientMsgProtobuf(EMsg.ClientGamesPlayed); + byte maxGamesCount = MaxGamesPlayedConcurrently; + if (!string.IsNullOrEmpty(gameName)) { // If we have custom name to display, we must workaround the Steam network fuckup and send request on clean non-playing session // This ensures that custom name will in fact display properly @@ -119,12 +121,14 @@ namespace ArchiSteamFarm { ModID = uint.MaxValue } }); + + maxGamesCount++; } foreach (uint gameID in gameIDs.Where(gameID => gameID != 0)) { request.Body.games_played.Add(new CMsgClientGamesPlayed.GamePlayed { game_id = new GameID(gameID) }); - if (request.Body.games_played.Count >= MaxGamesPlayedConcurrently) { + if (request.Body.games_played.Count >= maxGamesCount) { break; } }