Fixed camera going insane when dropping through hatches

TODO: make the game less rubberbandy
This commit is contained in:
juanjp600
2017-12-12 21:08:37 -03:00
parent b3178c6ab1
commit c4e894cb2e
2 changed files with 20 additions and 4 deletions
@@ -141,7 +141,7 @@ namespace Barotrauma
float rotation = msg.ReadFloat();
int index = 0;
if (GameMain.NetworkMember.Character == this && AllowInput)
if (GameMain.NetworkMember.Character == this)
{
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))