Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: FN <[email protected]>
  • Loading branch information
AwareFoxy and FireNameFN authored Dec 7, 2024
1 parent 2e04efa commit 833f0ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Content.Shared/CombatMode/SharedCombatModeSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ private void SetMouseRotatorComponents(EntityUid uid, bool value)
{
if (value)
{
var rot = EnsureComp<MouseRotatorComponent>(uid); // Corvax-Next-NoScope
// Corvax-Next-NoScope-Start
var rot = EnsureComp<MouseRotatorComponent>(uid);
if (TryComp<CombatModeComponent>(uid, out var comp) && comp.SmoothRotation) // no idea under which (intended) circumstances this can fail (if any), so i'll avoid Comp<>().
{
rot.AngleTolerance = Angle.FromDegrees(1); // arbitrary
Expand Down

0 comments on commit 833f0ea

Please sign in to comment.