Skip to content

Commit

Permalink
Change scope to return early
Browse files Browse the repository at this point in the history
  • Loading branch information
Lacyway committed May 31, 2024
1 parent c4e73cc commit 3040b95
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Fika.Core/Coop/FreeCamera/FreeCamera.cs
Original file line number Diff line number Diff line change
Expand Up @@ -350,20 +350,20 @@ private void SetLeftShoulderMode(bool enabled)
transform.localPosition = new(-transform.localPosition.x, transform.localPosition.y, transform.localPosition.z);
}
leftMode = true;

return;
}

// Use different coordinates for headcam
if (transform.localPosition.z == 0.17f)
{
transform.localPosition = new(transform.localPosition.x, transform.localPosition.y, -transform.localPosition.z);
}
else
{
// Use different coordinates for headcam
if (transform.localPosition.z == 0.17f)
{
transform.localPosition = new(transform.localPosition.x, transform.localPosition.y, -transform.localPosition.z);
}
else
{
transform.localPosition = new(-transform.localPosition.x, transform.localPosition.y, transform.localPosition.z);
}
leftMode = false;
transform.localPosition = new(-transform.localPosition.x, transform.localPosition.y, transform.localPosition.z);
}
leftMode = false;
}

private void ToggleVision()
Expand Down

0 comments on commit 3040b95

Please sign in to comment.