o Entities under attack are rendered on the minimap last.

git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@574 67975925-1194-0748-b3d5-c16f83f1a3a1
This commit is contained in:
puzl 2006-08-22 20:33:19 +00:00
parent 754ebd5ce2
commit 4b9a82d79c

View file

@ -707,12 +707,21 @@ void AvHOverviewMap::Draw(const DrawInfo& inDrawInfo)
AvHSpriteEnableClippingRect(false);
}
DrawableEntityListType attackedEntities;
for (DrawableEntityListType::const_iterator theIter = this->mDrawableEntityList.begin(); theIter != this->mDrawableEntityList.end(); theIter++)
{
DrawMiniMapEntity(inDrawInfo, *theIter);
if ( (*theIter).mIsUnderAttack == true )
attackedEntities.push_back(*theIter);
else
DrawMiniMapEntity(inDrawInfo, *theIter);
}
// Draw the way points as entities.
for (DrawableEntityListType::const_iterator theIter = attackedEntities.begin(); theIter != attackedEntities.end(); theIter++)
{
DrawMiniMapEntity(inDrawInfo, *theIter);
}
// Draw the way points as entities.
{