Server doesn't send character position updates to far-away clients, clients disable characters if they haven't received position updates in a while
This commit is contained in:
@@ -44,10 +44,6 @@ namespace Barotrauma
|
||||
{
|
||||
radarPosition = monster.Position;
|
||||
}
|
||||
else if (GameMain.Client == null)
|
||||
{ Vector2 diff = monster.WorldPosition - Submarine.MainSub.WorldPosition;
|
||||
monster.Enabled = FarseerPhysics.ConvertUnits.ToSimUnits(diff.Length()) < NetConfig.CharacterIgnoreDistance;
|
||||
}
|
||||
|
||||
if (!monster.IsDead) return;
|
||||
ShowMessage(state);
|
||||
|
||||
Reference in New Issue
Block a user