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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user