Fix aliens not appearing on the minimap, closes #901
parent
004106eb19
commit
149d1f8156
|
@ -1164,12 +1164,20 @@ void CMap::UpdateObject(CObject* pObj)
|
||||||
if ( !m_bEnable ) return;
|
if ( !m_bEnable ) return;
|
||||||
if ( m_totalFix >= m_totalMove ) return; // full table?
|
if ( m_totalFix >= m_totalMove ) return; // full table?
|
||||||
|
|
||||||
|
type = pObj->GetType();
|
||||||
if ( !pObj->GetDetectable() ) return;
|
if ( !pObj->GetDetectable() ) return;
|
||||||
if ( pObj->Implements(ObjectInterfaceType::Controllable) && !dynamic_cast<CControllableObject*>(pObj)->GetSelectable() ) return;
|
if ( type != OBJECT_MOTHER &&
|
||||||
|
type != OBJECT_ANT &&
|
||||||
|
type != OBJECT_SPIDER &&
|
||||||
|
type != OBJECT_BEE &&
|
||||||
|
type != OBJECT_WORM &&
|
||||||
|
type != OBJECT_MOBILEtg )
|
||||||
|
{
|
||||||
|
if (pObj->Implements(ObjectInterfaceType::Controllable) && !dynamic_cast<CControllableObject*>(pObj)->GetSelectable()) return;
|
||||||
|
}
|
||||||
if ( pObj->GetProxyActivate() ) return;
|
if ( pObj->GetProxyActivate() ) return;
|
||||||
if (IsObjectBeingTransported(pObj)) return;
|
if (IsObjectBeingTransported(pObj)) return;
|
||||||
|
|
||||||
type = pObj->GetType();
|
|
||||||
pos = pObj->GetPosition();
|
pos = pObj->GetPosition();
|
||||||
dir = -(pObj->GetRotationY()+Math::PI/2.0f);
|
dir = -(pObj->GetRotationY()+Math::PI/2.0f);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue