Unstable 0.16.0.0

This commit is contained in:
Markus Isberg
2022-01-14 01:28:24 +09:00
parent d9baeaa2e1
commit 7d6421a548
237 changed files with 6430 additions and 2205 deletions
@@ -333,6 +333,7 @@ namespace Barotrauma.Items.Components
FindLightComponent();
if (loadedRotationLimits.HasValue) { RotationLimits = loadedRotationLimits.Value; }
if (loadedBaseRotation.HasValue) { BaseRotation = loadedBaseRotation.Value; }
targetRotation = rotation;
UpdateTransformedBarrelPos();
}
@@ -1516,7 +1517,7 @@ namespace Barotrauma.Items.Components
minRotation += MathHelper.TwoPi;
maxRotation += MathHelper.TwoPi;
}
rotation = (minRotation + maxRotation) / 2;
targetRotation = rotation = (minRotation + maxRotation) / 2;
UpdateTransformedBarrelPos();
}
@@ -1537,7 +1538,7 @@ namespace Barotrauma.Items.Components
minRotation += MathHelper.TwoPi;
maxRotation += MathHelper.TwoPi;
}
rotation = (minRotation + maxRotation) / 2;
targetRotation = rotation = (minRotation + maxRotation) / 2;
UpdateTransformedBarrelPos();
}
@@ -1607,6 +1608,7 @@ namespace Barotrauma.Items.Components
{
base.OnItemLoaded();
FindLightComponent();
targetRotation = rotation;
if (!loadedBaseRotation.HasValue)
{
if (item.FlippedX) { FlipX(relativeToSub: false); }