mirror of
https://github.com/ENSL/NS.git
synced 2024-11-10 07:11:38 +00:00
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:
parent
754ebd5ce2
commit
4b9a82d79c
1 changed files with 11 additions and 2 deletions
|
@ -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.
|
||||
|
||||
{
|
||||
|
||||
|
|
Loading…
Reference in a new issue