chrishayesmu / XCOM-LW-CommunityEdition

14 stars 2 forks source link

Clicking already-collected Meld while concealed will still reveal the soldier #74

Open chrishayesmu opened 1 year ago

chrishayesmu commented 1 year ago

This is a bug because the unit doesn't actually do anything, yet ends up revealed anyway.

The code to change is in XComGame.XComMeldContainerActor._Pristine.OnInteraction. Despite the state's name, it appears to still be used for collected Meld containers. The call to kUnit.Unhide should be located within the if (!m_bCollected) condition.