Position updates not sent for subs docked to the second main sub

This commit is contained in:
Regalis
2016-11-06 16:56:05 +02:00
parent e15f5f5040
commit 92985f3ed9
2 changed files with 10 additions and 1 deletions
+5
View File
@@ -331,6 +331,11 @@ namespace Barotrauma
public void SetTransform(Vector2 position, float rotation)
{
System.Diagnostics.Debug.Assert(MathUtils.IsValid(position));
System.Diagnostics.Debug.Assert(Math.Abs(position.X) < 1000000.0f);
System.Diagnostics.Debug.Assert(Math.Abs(position.Y) < 1000000.0f);
body.SetTransform(position, rotation);
SetPrevTransform(position, rotation);
}