stratagus-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Stratagus-CVS] stratagus/src/action command.c


From: address@hidden
Subject: [Stratagus-CVS] stratagus/src/action command.c
Date: 1 Feb 2004 16:15:20 +1100

CVSROOT:        /home/strat
Module name:    stratagus
Changes by:      <address@hidden>       04/02/01 16:15:20

Modified files:
        src/action     : command.c 

Log message:
        Fix Bug where you should not mark/unmark vision of Destroyed units

Patches:
Index: stratagus/src/action/command.c
diff -u stratagus/src/action/command.c:1.133 
stratagus/src/action/command.c:1.134
--- stratagus/src/action/command.c:1.133        Sat Jan 31 02:14:48 2004
+++ stratagus/src/action/command.c      Sun Feb  1 16:15:19 2004
@@ -26,7 +26,7 @@
 //      Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 //      02111-1307, USA.
 //
-//      $Id: command.c,v 1.133 2004/01/30 15:14:48 nobody_ Exp $
+//      $Id: command.c,v 1.134 2004/02/01 05:15:19 wizzard Exp $
 
 //@{
 
@@ -1314,7 +1314,9 @@
        //      Do a real hardcore seen recount. First we unmark EVERYTHING.
        //
        for (i = 0; i < NumUnits; ++i) {
-               MapUnmarkUnitSight(Units[i]);
+               if (!Units[i]->Destroyed) {
+                       MapUnmarkUnitSight(Units[i]);
+               }
        }
 
        //
@@ -1355,7 +1357,9 @@
        //      Do a real hardcore seen recount. Now we remark EVERYTHING
        //
        for (i = 0; i < NumUnits; ++i) {
-               MapMarkUnitSight(Units[i]);
+               if (!Units[i]->Destroyed) {
+                       MapMarkUnitSight(Units[i]);
+               }
        }
 }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]