| 696 | } |
| 697 | |
| 698 | bool CRelationMapLocation::IsVisible() |
| 699 | { |
| 700 | bool res = true; |
| 701 | if (m_last_relation == ALife::eRelationTypeEnemy || m_last_relation == ALife::eRelationTypeWorstEnemy) |
| 702 | { |
| 703 | CObject* _object_ = Level().Objects.net_Find(m_pInvOwnerEntityID); |
| 704 | if (_object_) |
| 705 | { |
| 706 | CEntityAlive* ea = smart_cast<CEntityAlive*>(_object_); |
| 707 | if (ea && !ea->g_Alive()) |
| 708 | return true; |
| 709 | |
| 710 | res = Actor()->memory().visual().visible_now(smart_cast<const CGameObject*>(_object_)); |
| 711 | } |
| 712 | else |
| 713 | res = false; |
| 714 | } |
| 715 | if (m_b_was_visible_last_frame == false && res == true) |
| 716 | { |
| 717 | m_minimap_spot->ResetXformAnimation(); |
| 718 | } |
| 719 | |
| 720 | m_b_was_visible_last_frame = res; |
| 721 | return res; |
| 722 | } |
| 723 | |
| 724 | void CRelationMapLocation::UpdateMiniMap(CUICustomMap* map) |
| 725 | { |
no test coverage detected