From 2880ca3adbeb61712c3217f304759d6600fef031 Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Thu, 1 Mar 2018 15:57:57 +0200 Subject: [PATCH] Contained items drawn by ItemContainer.Draw use the sprite color of the item. Closes #300 --- .../BarotraumaClient/Source/Items/Components/ItemContainer.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Barotrauma/BarotraumaClient/Source/Items/Components/ItemContainer.cs b/Barotrauma/BarotraumaClient/Source/Items/Components/ItemContainer.cs index 513e44646..2a086e0f2 100644 --- a/Barotrauma/BarotraumaClient/Source/Items/Components/ItemContainer.cs +++ b/Barotrauma/BarotraumaClient/Source/Items/Components/ItemContainer.cs @@ -46,6 +46,7 @@ namespace Barotrauma.Items.Components containedItem.Sprite.Draw( spriteBatch, new Vector2(transformedItemPos.X, -transformedItemPos.Y), + containedItem.GetSpriteColor(), -currentRotation, 1.0f, (item.body != null && item.body.Dir == -1) ? SpriteEffects.FlipHorizontally : SpriteEffects.None);