stratagus-cvs
[Top][All Lists]
Advanced

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

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


From: Crestez Leonard
Subject: [Stratagus-CVS] stratagus/src/action action_repair.c
Date: Sun, 09 Nov 2003 01:04:28 -0500

CVSROOT:        /cvsroot/stratagus
Module name:    stratagus
Branch:         
Changes by:     Crestez Leonard <address@hidden>        03/11/09 01:04:27

Modified files:
        src/action     : action_repair.c 

Log message:
        Sorry, fixed. Yeah, that's how the check should be.

Patches:
Index: stratagus/src/action/action_repair.c
diff -u stratagus/src/action/action_repair.c:1.57 
stratagus/src/action/action_repair.c:1.58
--- stratagus/src/action/action_repair.c:1.57   Fri Nov  7 16:21:11 2003
+++ stratagus/src/action/action_repair.c        Sun Nov  9 01:04:27 2003
@@ -26,7 +26,7 @@
 //      Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 //      02111-1307, USA.
 //
-//     $Id: action_repair.c,v 1.57 2003/11/07 21:21:11 jsalmon3 Exp $
+//     $Id: action_repair.c,v 1.58 2003/11/09 06:04:27 n0body Exp $
 
 //@{
 
@@ -129,7 +129,7 @@
     //
     //  Repair the unit
     //
-    if (goal->Type->BuilderOutside) {
+    if (goal->Type->BuilderOutside && (goal->Orders->Action == 
UnitActionBuilded)) {
        //  hp is the current damage taken by the unit.
        hp = (goal->Data.Builded.Progress * goal->Stats->HitPoints) /
            (goal->Type->Stats->Costs[TimeCost] * 600) - goal->HP;




reply via email to

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