mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-10-14 07:17:44 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user