pingus-cvs
[Top][All Lists]
Advanced

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

[Pingus-CVS] CVS: Games/Pingus/src groundpiece_data.hxx,1.7,1.8 xml_help


From: grumbel
Subject: [Pingus-CVS] CVS: Games/Pingus/src groundpiece_data.hxx,1.7,1.8 xml_helper.cxx,1.5,1.6
Date: 26 Jun 2002 11:23:56 -0000

Update of /usr/local/cvsroot/Games/Pingus/src
In directory dark:/tmp/cvs-serv21682

Modified Files:
        groundpiece_data.hxx xml_helper.cxx 
Log Message:
headbump und pingu_particle fix

Index: groundpiece_data.hxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/groundpiece_data.hxx,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- groundpiece_data.hxx        25 Jun 2002 18:15:18 -0000      1.7
+++ groundpiece_data.hxx        26 Jun 2002 11:23:54 -0000      1.8
@@ -41,15 +41,16 @@
   ResDescriptor desc;
   CL_Vector pos;
 
-  typedef enum { GP_SOLID, 
-               GP_TRANSPARENT,
-               GP_GROUND,
-               GP_BRIDGE, 
-               GP_WATER,
-               GP_LAVA,
-               GP_REMOVE, 
-               GP_NOTHING,
-               GP_OUTOFSCREEN
+  typedef enum { 
+    GP_NOTHING,
+    GP_SOLID, 
+    GP_TRANSPARENT,
+    GP_GROUND,
+    GP_BRIDGE, 
+    GP_WATER,
+    GP_LAVA,
+    GP_REMOVE, 
+    GP_OUTOFSCREEN
   } GPType;
   GPType gptype; 
 

Index: xml_helper.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/xml_helper.cxx,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- xml_helper.cxx      26 Jun 2002 09:29:47 -0000      1.5
+++ xml_helper.cxx      26 Jun 2002 11:23:54 -0000      1.6
@@ -219,6 +219,12 @@
              desc.type = ResDescriptor::RD_RESOURCE;
              while (ccur != NULL)
                {
+                 if (xmlIsBlankNode(cur)) 
+                   {
+                     cur = cur->next;
+                     continue;
+                   }
+
                  if (strcmp((char*)ccur->name, "resource-datafile") == 0)
                    {
                      char* datafile = (char*)xmlNodeListGetString(doc, 
ccur->children, 1);




reply via email to

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