Skip to content

Commit

Permalink
fix issue
Browse files Browse the repository at this point in the history
  • Loading branch information
GuoWQ222 committed May 11, 2024
1 parent 765bb84 commit 1282cfb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions logic/Server/RpcServices.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ public override async Task AddPlayer(PlayerMsg request, IServerStreamWriter<Mess
{
if (currentGameInfo != null)
{
for (int i = currentGameInfo.ObjMessage.Count - 1; i >= 0; i--)
{
if (currentGameInfo.ObjMessage[i].NewsMessage != null)
{
currentGameInfo.ObjMessage.RemoveAt(i);
}
}
await responseStream.WriteAsync(currentGameInfo);
GameServerLogging.logger.ConsoleLog("Send!", false);
}
Expand Down

0 comments on commit 1282cfb

Please sign in to comment.