mirror of
https://github.com/glest/glest-source.git
synced 2025-08-19 14:41:23 +02:00
no need to render dead units when selecting
This commit is contained in:
@@ -7728,6 +7728,11 @@ vector<Unit *> Renderer::renderUnitsFast(bool renderingShadows, bool colorPickin
|
||||
visibleUnitIndex < (int)qCache.visibleQuadUnitList.size(); ++visibleUnitIndex) {
|
||||
Unit *unit = qCache.visibleQuadUnitList[visibleUnitIndex];
|
||||
|
||||
if(renderingShadows==false && unit->isAlive()==false){
|
||||
// no need to render dead units for selection
|
||||
continue;
|
||||
}
|
||||
|
||||
if(renderOnlyBuildings==true && unit->getType()->hasSkillClass(scMove)){
|
||||
continue;
|
||||
}
|
||||
|
Reference in New Issue
Block a user