Skip to content

Commit

Permalink
Merge pull request #370 from GuoWQ222/dev
Browse files Browse the repository at this point in the history
fix issue
  • Loading branch information
DragonAura authored May 11, 2024
2 parents 1321552 + 5fcd9e0 commit 3d9df0c
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 3d9df0c

Please sign in to comment.