From 9341ac772db84b2f74ee8307d2ae62a88cd3d7eb Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Sun, 9 Jun 2019 17:37:25 +0300 Subject: [PATCH] (d616acca8) Empty contained item indicators (oxygen tank, battery, etc indicators) keep pulsating when they're empty --- Barotrauma/BarotraumaClient/Source/Items/Inventory.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Barotrauma/BarotraumaClient/Source/Items/Inventory.cs b/Barotrauma/BarotraumaClient/Source/Items/Inventory.cs index 29aa5006d..8c3597b8d 100644 --- a/Barotrauma/BarotraumaClient/Source/Items/Inventory.cs +++ b/Barotrauma/BarotraumaClient/Source/Items/Inventory.cs @@ -875,7 +875,7 @@ namespace Barotrauma containedIndicatorArea.Width / (float)indicatorSprite.SourceRect.Width, containedIndicatorArea.Height / (float)indicatorSprite.SourceRect.Height); - if (containedState > 0.0f && containedState < 0.25f) + if (containedState >= 0.0f && containedState < 0.25f) { indicatorScale += ((float)Math.Sin(Timing.TotalTime * 5.0f) + 1.0f) * 0.25f; }