From a8e7fb49776aa86bfa5af056212ab7ae45fe091d Mon Sep 17 00:00:00 2001 From: Vera Aguilera Puerto Date: Mon, 6 Sep 2021 16:55:05 +0200 Subject: [PATCH] Optimize atmos debug assert. Seems I missed this one. --- .../Atmos/EntitySystems/AtmosphereSystem.Monstermos.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/Atmos/EntitySystems/AtmosphereSystem.Monstermos.cs b/Content.Server/Atmos/EntitySystems/AtmosphereSystem.Monstermos.cs index 6f4ed1bd48..b91a0dcf37 100644 --- a/Content.Server/Atmos/EntitySystems/AtmosphereSystem.Monstermos.cs +++ b/Content.Server/Atmos/EntitySystems/AtmosphereSystem.Monstermos.cs @@ -560,7 +560,7 @@ namespace Content.Server.Atmos.EntitySystems private void AdjustEqMovement(TileAtmosphere tile, AtmosDirection direction, float amount) { - DebugTools.Assert(tile.AdjacentBits.HasFlag(direction)); + DebugTools.Assert(tile.AdjacentBits.IsFlagSet(direction)); DebugTools.Assert(tile.AdjacentTiles[direction.ToIndex()] != null); tile.MonstermosInfo[direction] += amount; // Every call to this method already ensures that the adjacent tile won't be null.