Backported animcontroller-overhaul
This commit is contained in:
@@ -664,7 +664,7 @@ namespace Barotrauma.Networking
|
||||
List<Character> crew = new List<Character>();
|
||||
foreach (Character c in Character.CharacterList)
|
||||
{
|
||||
if (!c.IsNetworkPlayer || !c.IsHumanoid || c.Info==null) continue;
|
||||
if (!c.IsRemotePlayer || !c.IsHumanoid || c.Info==null) continue;
|
||||
crew.Add(c);
|
||||
}
|
||||
|
||||
|
||||
@@ -394,7 +394,7 @@ namespace Barotrauma.Networking
|
||||
if (!(c is AICharacter) || c.IsDead) continue;
|
||||
|
||||
if (Character.CharacterList.Any(
|
||||
c2 => c2.IsNetworkPlayer &&
|
||||
c2 => c2.IsRemotePlayer &&
|
||||
Vector2.Distance(c2.WorldPosition, c.WorldPosition) < ignoreDistance))
|
||||
{
|
||||
new NetworkEvent(NetworkEventType.EntityUpdate, c.ID, false);
|
||||
|
||||
Reference in New Issue
Block a user