From ee13ea397241dd0c58b116e60406fa35555d5b3d Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Mon, 23 Jul 2018 17:40:40 +0300 Subject: [PATCH] Fixed clients not syncing the position of their controlled character when dead/unconscious --- .../BarotraumaClient/Source/Characters/CharacterNetworking.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Barotrauma/BarotraumaClient/Source/Characters/CharacterNetworking.cs b/Barotrauma/BarotraumaClient/Source/Characters/CharacterNetworking.cs index 9db7409d8..877bf6414 100644 --- a/Barotrauma/BarotraumaClient/Source/Characters/CharacterNetworking.cs +++ b/Barotrauma/BarotraumaClient/Source/Characters/CharacterNetworking.cs @@ -150,7 +150,7 @@ namespace Barotrauma msg.ReadPadBits(); int index = 0; - if (GameMain.NetworkMember.Character == this) + if (GameMain.NetworkMember.Character == this && AllowInput) { var posInfo = new CharacterStateInfo(pos, rotation, networkUpdateID, facingRight ? Direction.Right : Direction.Left, selectedEntity, animation); while (index < memState.Count && NetIdUtils.IdMoreRecent(posInfo.ID, memState[index].ID))