Revert an unfortunate early break introduced in 2527aabd5d, patch by Sandarac.

Reviewed By: Itms
Differential Revision: https://code.wildfiregames.com/D641
This was SVN commit r19777.
This commit is contained in:
Itms
2017-06-15 17:45:16 +00:00
parent 0179915f21
commit 860b5bbfce
@@ -381,14 +381,14 @@ void CCmpSelectable::HandleMessage(const CMessage& msg, bool UNUSED(global))
}
case MT_PositionChanged:
{
if (!m_AlwaysVisible)
break;
const CMessagePositionChanged& msgData = static_cast<const CMessagePositionChanged&> (msg);
if (msgData.inWorld && !m_Selected)
m_Color.a = m_AlphaMin = MIN_ALPHA_ALWAYS_VISIBLE;
else if (!msgData.inWorld)
m_Color.a = m_AlphaMin = MIN_ALPHA_UNSELECTED;
if (m_AlwaysVisible)
{
const CMessagePositionChanged& msgData = static_cast<const CMessagePositionChanged&> (msg);
if (!msgData.inWorld)
m_Color.a = m_AlphaMin = MIN_ALPHA_UNSELECTED;
else if (!m_Selected)
m_Color.a = m_AlphaMin = MIN_ALPHA_ALWAYS_VISIBLE;
}
InvalidateStaticOverlay();
break;