diff --git a/Content.Server/AI/Utility/Considerations/Consideration.cs b/Content.Server/AI/Utility/Considerations/Consideration.cs index 80860b07c1..e7212bf1dd 100644 --- a/Content.Server/AI/Utility/Considerations/Consideration.cs +++ b/Content.Server/AI/Utility/Considerations/Consideration.cs @@ -26,7 +26,7 @@ namespace Content.Server.AI.Utility.Considerations // Previously we used a makeupvalue method although the geometric mean is less punishing for more considerations var considerationsCount = context.GetState().GetValue(); var adjustedScore = MathF.Pow(score, 1 / (float) considerationsCount); - return FloatMath.Clamp(adjustedScore, 0.0f, 1.0f); + return MathHelper.Clamp(adjustedScore, 0.0f, 1.0f); } [Pure] diff --git a/Content.Server/GameObjects/EntitySystems/Atmos/GasTileOverlaySystem.cs b/Content.Server/GameObjects/EntitySystems/Atmos/GasTileOverlaySystem.cs index f1cb864dbd..d70331f71e 100644 --- a/Content.Server/GameObjects/EntitySystems/Atmos/GasTileOverlaySystem.cs +++ b/Content.Server/GameObjects/EntitySystems/Atmos/GasTileOverlaySystem.cs @@ -165,7 +165,7 @@ namespace Content.Server.GameObjects.EntitySystems.Atmos if (moles < gas.GasMolesVisible) continue; - var data = new GasData(i, (byte) (FloatMath.Clamp01(moles / gas.GasMolesVisibleMax) * 255)); + var data = new GasData(i, (byte) (MathHelper.Clamp01(moles / gas.GasMolesVisibleMax) * 255)); tileData.Add(data); } diff --git a/Content.Server/GameTicking/GamePresets/PresetSuspicion.cs b/Content.Server/GameTicking/GamePresets/PresetSuspicion.cs index c77b8a110e..379d639760 100644 --- a/Content.Server/GameTicking/GamePresets/PresetSuspicion.cs +++ b/Content.Server/GameTicking/GamePresets/PresetSuspicion.cs @@ -68,7 +68,7 @@ namespace Content.Server.GameTicking.GamePresets player.AttachedEntity?.EnsureComponent(); } - var numTraitors = FloatMath.Clamp(readyPlayers.Count / PlayersPerTraitor, + var numTraitors = MathHelper.Clamp(readyPlayers.Count / PlayersPerTraitor, MinTraitors, readyPlayers.Count); for (var i = 0; i < numTraitors; i++)