Fixed client-side docking ports creating duplicate bodies on doors, causing characters to collide with an invisible door when trying to move between docked subs (until the server forces them through it). + TODO note about bugged hull finding logic in UpdateNetPlayerPosition!

This commit is contained in:
Joonas Rikkonen
2018-11-10 20:21:43 +02:00
parent 481f51f3d8
commit cea5d5b074
2 changed files with 9 additions and 0 deletions
@@ -1497,6 +1497,7 @@ namespace Barotrauma
}
}
//TODO: this does not work, the positions are in sim units but FindHull uses display units
Hull serverHull = Hull.FindHull(serverPos.Position, character.CurrentHull, false);
Hull clientHull = Hull.FindHull(localPos.Position, serverHull, false);