Ticket #1365: hero_selection_ring_gone_on_garrison.patch

File hero_selection_ring_gone_on_garrison.patch, 627 bytes (added by Doménique, 12 years ago)

Resolves the non-disappearance of the hero selection ring at RenderSubmit

  • source/simulation2/components/CCmpSelectable.cpp

     
    521521void CCmpSelectable::RenderSubmit(SceneCollector& collector)
    522522{
    523523    // don't render selection overlay if it's not gonna be visible
    524     if (m_Color.a > 0)
     524    entity_id_t entityId = GetEntityId();
     525    CmpPtr<ICmpPosition> cmpPosition(GetSimContext(), entityId);
     526    if (m_Color.a > 0 && cmpPosition && cmpPosition->IsInWorld())
    525527    {
    526528        if (!m_Cached)
    527529        {