(35b1c9d08) Fixed: NetLobby permission view dialog

This commit is contained in:
Joonas Rikkonen
2019-05-16 06:24:21 +03:00
parent a09baa3484
commit 880b7b1c02
15 changed files with 155 additions and 1474 deletions
@@ -495,10 +495,10 @@ namespace Barotrauma.Items.Components
character.CursorPosition = closestEnemy.WorldPosition;
if (item.Submarine != null) character.CursorPosition -= item.Submarine.Position;
//force aim input even if the turret doesn't require it,
//because the cursor position (and consequently, turret aim direction) is only synced to clients when aiming
character.SetInput(InputType.Aim, false, true);
if (item.RequireAimToUse)
{
character.SetInput(InputType.Aim, false, true);
}
float enemyAngle = MathUtils.VectorToAngle(closestEnemy.WorldPosition - item.WorldPosition);
float turretAngle = -rotation;