Fix aliens not appearing on the minimap, closes #901

master
krzys-h 2017-05-23 20:51:37 +02:00
parent 004106eb19
commit 149d1f8156
1 changed files with 10 additions and 2 deletions

View File

@ -1164,12 +1164,20 @@ void CMap::UpdateObject(CObject* pObj)
if ( !m_bEnable ) return;
if ( m_totalFix >= m_totalMove ) return; // full table?
type = pObj->GetType();
if ( !pObj->GetDetectable() ) 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 (IsObjectBeingTransported(pObj)) return;
type = pObj->GetType();
pos = pObj->GetPosition();
dir = -(pObj->GetRotationY()+Math::PI/2.0f);