]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Cleanup some misc warnings (#37904)
authorTayrtahn <tayrtahn@gmail.com>
Wed, 28 May 2025 16:45:38 +0000 (12:45 -0400)
committerGitHub <noreply@github.com>
Wed, 28 May 2025 16:45:38 +0000 (12:45 -0400)
* Fix warning CS8524 for TurretControllerWindow

* Fix warning CS0660 for AtmosAlarmThreshold

Content.Client/TurretController/TurretControllerWindow.xaml.cs
Content.Shared/Atmos/Monitor/AtmosAlarmThreshold.cs

index 020c894f54bc8f65aea9002bc571201384b4d22d..2f6d81ff706ad083ddef1aa7e6aeb084977cef21 100644 (file)
@@ -115,6 +115,7 @@ public sealed partial class TurretControllerWindow : BaseWindow
             TurretArmamentSetting.Safe => SafeButton,
             TurretArmamentSetting.Stun => StunButton,
             TurretArmamentSetting.Lethal => LethalButton,
+            _ => throw new NotImplementedException(),
         };
         setPressedOn.Pressed = true;
 
index f80a887b4ff39dc8d768557db1cf678a2dbe5343..89d0bf239292786b3c8a7e63a1540e0e237fe71c 100644 (file)
@@ -348,6 +348,11 @@ public readonly partial struct AlarmThresholdSetting: IEquatable<AlarmThresholdS
         return true;
     }
 
+    public override bool Equals(object? obj)
+    {
+        return obj is AlarmThresholdSetting ats && Equals(ats);
+    }
+
     public static bool operator ==(AlarmThresholdSetting lhs, AlarmThresholdSetting rhs)
     {
         return lhs.Equals(rhs);