(a5eaeca2c) Fix alternative layout not being used on linked items that were selected (only on the linked items that were displayed when another object is selected).
This commit is contained in:
@@ -783,7 +783,7 @@ namespace Barotrauma
|
|||||||
{
|
{
|
||||||
if (!ic.CanBeSelected) { continue; }
|
if (!ic.CanBeSelected) { continue; }
|
||||||
|
|
||||||
bool useAlternativeLayout = ic.Item != this;
|
bool useAlternativeLayout = activeHUDs.Count > 1;
|
||||||
bool wasUsingAlternativeLayout = ic.UseAlternativeLayout;
|
bool wasUsingAlternativeLayout = ic.UseAlternativeLayout;
|
||||||
ic.UseAlternativeLayout = useAlternativeLayout;
|
ic.UseAlternativeLayout = useAlternativeLayout;
|
||||||
needsLayoutUpdate |= ic.UseAlternativeLayout != wasUsingAlternativeLayout;
|
needsLayoutUpdate |= ic.UseAlternativeLayout != wasUsingAlternativeLayout;
|
||||||
|
|||||||
Reference in New Issue
Block a user