Skip to content

Commit

Permalink
Merge pull request #376 from eesast/dev
Browse files Browse the repository at this point in the history
v1.0.8
  • Loading branch information
DragonAura authored May 12, 2024
2 parents f9902cf + 1a9db10 commit 800c0f9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions logic/Server/RpcServices.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,15 @@ public override async Task AddPlayer(PlayerMsg request, IServerStreamWriter<Mess
{
if (currentGameInfo != null)
{
for (int i = currentGameInfo.ObjMessage.Count - 1; i >= 0; i--)
var info = currentGameInfo.Clone();
for (int i = info.ObjMessage.Count - 1; i >= 0; i--)
{
if (currentGameInfo.ObjMessage[i].NewsMessage != null)
if (info.ObjMessage[i].NewsMessage != null)
{
currentGameInfo.ObjMessage.RemoveAt(i);
info.ObjMessage.RemoveAt(i);
}
}
await responseStream.WriteAsync(currentGameInfo);
await responseStream.WriteAsync(info);
GameServerLogging.logger.ConsoleLog("Send!", false);
}
}
Expand Down

0 comments on commit 800c0f9

Please sign in to comment.