NetEntityEvent fixes:

- comparing event data equality with Object.Equals instead of == because == returns false for boxed value types
- fixed old unacked messages not being resent if there are newer unacked messages that have been resent less than 1.5 * RTT ago
This commit is contained in:
Regalis
2017-01-03 20:10:03 +02:00
parent 1fb15f5589
commit 1eea373117
4 changed files with 45 additions and 18 deletions

View File

@@ -45,7 +45,7 @@ namespace Barotrauma.Networking
{
for (int i = 0; i<Data.Length; i++)
{
if (Data[i] != other.Data[i]) return false;
if (!Data[i].Equals(other.Data[i])) return false;
}
return true;
}