Only draw decorations if the unit is visible

This commit is contained in:
wizzard 2004-01-31 20:54:31 +00:00
parent d7648ab5ac
commit 0744cb6be2

View file

@ -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);
}
}