(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:
Joonas Rikkonen
2019-04-11 18:27:10 +03:00
parent f4275de1ac
commit 913b0f4526
@@ -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;