Skip to content

Commit

Permalink
skip icons for void-space units
Browse files Browse the repository at this point in the history
  • Loading branch information
rtri committed Mar 7, 2016
1 parent 0e8f7b5 commit e0fd9a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rts/Rendering/UnitDrawer.cpp
Expand Up @@ -639,6 +639,9 @@ void CUnitDrawer::DrawShadowPass()

void CUnitDrawer::DrawIcon(CUnit* unit, bool useDefaultIcon)
{
if (unit->IsInVoid())
return;

// If the icon is to be drawn as a radar blip, we want to get the default icon.
const icon::CIconData* iconData = NULL;

Expand Down

0 comments on commit e0fd9a4

Please sign in to comment.