stratagus-cvs
[Top][All Lists]
Advanced

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

[Stratagus-CVS] stratagus/src editor/edmap.c stratagus/pud.c


From: address@hidden
Subject: [Stratagus-CVS] stratagus/src editor/edmap.c stratagus/pud.c
Date: 10 Feb 2004 05:51:42 +1100

CVSROOT:        /home/strat
Module name:    stratagus
Changes by:      <address@hidden>       04/02/10 05:51:41

Modified files:
        src/editor     : edmap.c 
        src/stratagus  : pud.c 

Log message:
        Minor fixes.

Patches:
Index: stratagus/src/editor/edmap.c
diff -u stratagus/src/editor/edmap.c:1.27 stratagus/src/editor/edmap.c:1.28
--- stratagus/src/editor/edmap.c:1.27   Sat Feb  7 00:00:52 2004
+++ stratagus/src/editor/edmap.c        Tue Feb 10 05:51:40 2004
@@ -26,7 +26,7 @@
 //      Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 //      02111-1307, USA.
 //
-//      $Id: edmap.c,v 1.27 2004/02/06 13:00:52 nobody_ Exp $
+//      $Id: edmap.c,v 1.28 2004/02/09 18:51:40 nobody_ Exp $
 
 //@{
 
@@ -482,7 +482,7 @@
        MapField* mf;
 
        quad = QuadFromTile(x, y);
-       DebugLevel0Fn("%d,%d %08x %d\n" _C_ x _C_ y _C_ quad _C_
+       DebugLevel3Fn("%d,%d %08x %d\n" _C_ x _C_ y _C_ quad _C_
                TheMap.Fields[y * TheMap.Width + x].Tile);
 
        //
Index: stratagus/src/stratagus/pud.c
diff -u stratagus/src/stratagus/pud.c:1.113 stratagus/src/stratagus/pud.c:1.114
--- stratagus/src/stratagus/pud.c:1.113 Fri Jan 30 08:17:51 2004
+++ stratagus/src/stratagus/pud.c       Tue Feb 10 05:51:41 2004
@@ -26,7 +26,7 @@
 //      Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 //      02111-1307, USA.
 //
-//     $Id: pud.c,v 1.113 2004/01/29 21:17:51 wizzard Exp $
+//     $Id: pud.c,v 1.114 2004/02/09 18:51:41 nobody_ Exp $
 
 //@{
 
@@ -1291,7 +1291,10 @@
                                                        
unit=MakeUnitAndPlace(MapOffsetX+x,MapOffsetY+y
                                                                        
,UnitTypeByWcNum(t),&Players[o]);
                                                        if( 
unit->Type->GivesResource ) {
-                                                               DebugCheck( !v 
);
+                                                               if (!v) {
+                                                                       
DebugLevel0Fn("empty resource IN PUD.\n");
+                                                                       v = 10;
+                                                               }
                                                                
unit->Value=v*2500;
                                                        } else {
                                                                // 
active/inactive AI units!!




reply via email to

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