ServerEntityEventManager doesn't prevent creating a duplicate event if the previous one has already been sent to someone, handling exceptions in WriteEvent

This commit is contained in:
Regalis
2017-03-11 15:39:11 +02:00
parent 5bdb57b98a
commit 9e3d51edf4
2 changed files with 11 additions and 2 deletions

View File

@@ -78,7 +78,7 @@ namespace Barotrauma.Networking
{
//we already have an identical event that's waiting to be sent
// -> no need to add a new one
if (events[i].IsDuplicate(newEvent)) return;
if (events[i].IsDuplicate(newEvent) && !events[i].Sent) return;
}
ID++;