Resetting entity event IDs (lastSentToAll & client-specific IDs) when a round ends

This commit is contained in:
Regalis
2017-02-20 20:26:12 +02:00
parent 04f86865f7
commit 502211c6a7
2 changed files with 15 additions and 1 deletions

View File

@@ -314,9 +314,16 @@ namespace Barotrauma.Networking
bufferedEvents.Clear();
lastSentToAll = 0;
uniqueEvents.Clear();
server.ConnectedClients.ForEach(c => c.entityEventLastSent.Clear());
foreach (Client c in server.ConnectedClients)
{
c.entityEventLastSent.Clear();
c.lastRecvEntityEventID = 0;
c.lastSentEntityEventID = 0;
}
}
}
}