stratagus-cvs
[Top][All Lists]
Advanced

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

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


From: Jimmy Salmon
Subject: [Stratagus-CVS] stratagus/src/action action_resource.c
Date: Fri, 31 Oct 2003 12:36:12 -0500

CVSROOT:        /cvsroot/stratagus
Module name:    stratagus
Branch:         
Changes by:     Jimmy Salmon <address@hidden>   03/10/31 12:36:12

Modified files:
        src/action     : action_resource.c 

Log message:
        Fixed bug when no depot is found

Patches:
Index: stratagus/src/action/action_resource.c
diff -u stratagus/src/action/action_resource.c:1.61 
stratagus/src/action/action_resource.c:1.62
--- stratagus/src/action/action_resource.c:1.61 Fri Oct 24 23:12:16 2003
+++ stratagus/src/action/action_resource.c      Fri Oct 31 12:36:12 2003
@@ -26,7 +26,7 @@
 //      Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 //      02111-1307, USA.
 //
-//     $Id: action_resource.c,v 1.61 2003/10/25 03:12:16 n0body Exp $
+//     $Id: action_resource.c,v 1.62 2003/10/31 17:36:12 jsalmon3 Exp $
 
 //@{
 
@@ -195,7 +195,7 @@
            ++goal->Refs;
        } else {
            unit->Orders[0].Action = UnitActionStill;
-           unit->Orders[0].Goal = 0;
+           unit->Orders[0].Goal = NoUnitP;
            unit->SubAction = 0;
        }
        return 0;
@@ -543,6 +543,7 @@
        }
        DebugLevel0Fn("Can't find a resource deposit for unit %d.\n" _C_ 
unit->Slot);
        unit->Orders[0].Action = UnitActionStill;
+       unit->Orders[0].Goal = NoUnitP;
        unit->SubAction = 0;
        // should return 0, done below!
     } else {




reply via email to

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