Fixed clients not syncing the position of their controlled character when dead/unconscious

This commit is contained in:
Joonas Rikkonen
2018-07-23 17:40:40 +03:00
parent c8cdc5d58c
commit ee13ea3972

View File

@@ -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))