[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Stratagus-CVS] stratagus/src/unit unit_draw.c
From: |
address@hidden |
Subject: |
[Stratagus-CVS] stratagus/src/unit unit_draw.c |
Date: |
1 Feb 2004 07:54:31 +1100 |
CVSROOT: /home/strat
Module name: stratagus
Changes by: <address@hidden> 04/02/01 07:54:31
Modified files:
src/unit : unit_draw.c
Log message:
Only draw decorations if the unit is visible
Patches:
Index: stratagus/src/unit/unit_draw.c
diff -u stratagus/src/unit/unit_draw.c:1.220
stratagus/src/unit/unit_draw.c:1.221
--- stratagus/src/unit/unit_draw.c:1.220 Sat Jan 31 01:02:51 2004
+++ stratagus/src/unit/unit_draw.c Sun Feb 1 07:54:31 2004
@@ -26,7 +26,7 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
//
-// $Id: unit_draw.c,v 1.220 2004/01/30 14:02:51 nobody_ Exp $
+// $Id: unit_draw.c,v 1.221 2004/01/31 20:54:31 wizzard Exp $
//@{
@@ -644,7 +644,7 @@
{
#if 0
CLprintf(file, "\n;;; -----------------------------------------\n");
- CLprintf(file, ";;; MODULE: decorations $Id: unit_draw.c,v 1.220
2004/01/30 14:02:51 nobody_ Exp $\n\n");
+ CLprintf(file, ";;; MODULE: decorations $Id: unit_draw.c,v 1.221
2004/01/31 20:54:31 wizzard Exp $\n\n");
CLprintf(file, "(mana-sprite \"%s\" %d %d %d %d)\n",
ManaSprite.File, ManaSprite.HotX, ManaSprite.HotY,
@@ -1691,7 +1691,7 @@
}
// 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);
}
}