Flipping turrets & controllers, moved radar UI update to UpdateHUD

This commit is contained in:
Regalis
2016-10-05 16:52:40 +03:00
parent 9511baeeb8
commit 9154be4792
3 changed files with 53 additions and 2 deletions
@@ -347,6 +347,22 @@ namespace Barotrauma.Items.Components
return projectiles;
}
public override void FlipX()
{
minRotation = (float)Math.PI - minRotation;
maxRotation = (float)Math.PI - maxRotation;
var temp = minRotation;
minRotation = maxRotation;
maxRotation = temp;
while (minRotation < 0)
{
minRotation += MathHelper.TwoPi;
maxRotation += MathHelper.TwoPi;
}
}
public override void ReceiveSignal(int stepsTaken, string signal, Connection connection, Item sender, float power)
{