Skip to content

Commit

Permalink
кричу
Browse files Browse the repository at this point in the history
  • Loading branch information
RedFoxIV committed Dec 6, 2024
1 parent 55a3447 commit b56129d
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 @@ -93,7 +93,7 @@ private void SetMouseRotatorComponents(EntityUid uid, bool value)
if (value)
{
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<>().
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
rot.Simple4DirMode = false;
Expand Down

0 comments on commit b56129d

Please sign in to comment.