Skip to content

Commit

Permalink
Fix mantis #1990 (radar blips seen by spectators)
Browse files Browse the repository at this point in the history
  • Loading branch information
zerver committed Jul 29, 2010
1 parent 052c393 commit 422bf7e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rts/Rendering/UnitDrawer.cpp
Expand Up @@ -557,8 +557,10 @@ void CUnitDrawer::DrawUnitIcons(bool drawReflection)
for (GML_VECTOR<CUnit*>::iterator ui = drawIcon.begin(); ui != drawIcon.end(); ++ui) {
DrawIcon(*ui, false);
}
for (std::set<CUnit*>::const_iterator ui = unitRadarIcons[gu->myAllyTeam].begin(); ui != unitRadarIcons[gu->myAllyTeam].end(); ++ui) {
DrawIcon(*ui, true);
if(!gu->spectatingFullView) {
for (std::set<CUnit*>::const_iterator ui = unitRadarIcons[gu->myAllyTeam].begin(); ui != unitRadarIcons[gu->myAllyTeam].end(); ++ui) {
DrawIcon(*ui, true);
}
}

glDisable(GL_TEXTURE_2D);
Expand Down

0 comments on commit 422bf7e

Please sign in to comment.