Fixed highlighting items when highlighting a wire in a connection panel

This commit is contained in:
Regalis
2016-11-12 18:26:47 +02:00
parent 7fa660d38e
commit 0353732e7e
5 changed files with 30 additions and 12 deletions
@@ -398,14 +398,14 @@ namespace Barotrauma.Items.Components
{
foreach (WireSection section in sections)
{
section.Draw(spriteBatch, Color.Gold, drawOffset, depth, 0.5f);
section.Draw(spriteBatch, Color.Gold, drawOffset, depth + 0.00001f, 0.7f);
}
}
else if (item.IsSelected)
{
foreach (WireSection section in sections)
{
section.Draw(spriteBatch, Color.Red, drawOffset, depth, 0.5f);
section.Draw(spriteBatch, Color.Red, drawOffset, depth + 0.00001f, 0.7f);
}
}