Only draw decorations if the unit is visible
This commit is contained in:
parent
d7648ab5ac
commit
0744cb6be2
1 changed files with 1 additions and 1 deletions
|
@ -1691,7 +1691,7 @@ local void DrawInformations(const Unit* unit, const UnitType* type, int x, int y
|
|||
}
|
||||
|
||||
// FIXME: johns: ugly check here, should be removed!
|
||||
if (unit->Orders[0].Action != UnitActionDie) {
|
||||
if (unit->Orders[0].Action != UnitActionDie && UnitVisible(unit, ThisPlayer)) {
|
||||
DrawDecoration(unit, type, x, y);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue