pingus-cvs
[Top][All Lists]
Advanced

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

[Pingus-CVS] CVS: Games/Pingus/src/worldobjsdata conveyor_belt_data.cxx


From: grumbel
Subject: [Pingus-CVS] CVS: Games/Pingus/src/worldobjsdata conveyor_belt_data.cxx,1.6,1.7
Date: 18 Feb 2003 00:15:34 -0000

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

Modified Files:
        conveyor_belt_data.cxx 
Log Message:
Deja'Vu...


Index: conveyor_belt_data.cxx
===================================================================
RCS file: 
/usr/local/cvsroot/Games/Pingus/src/worldobjsdata/conveyor_belt_data.cxx,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- conveyor_belt_data.cxx      28 Sep 2002 11:52:26 -0000      1.6
+++ conveyor_belt_data.cxx      18 Feb 2003 00:15:32 -0000      1.7
@@ -36,16 +36,8 @@
 {
   cur = cur->children;
   
-  while (cur)
-    {
-      if (xmlIsBlankNode(cur)) 
-       {
-         cur = cur->next;
-         continue;
-       }
-      else if (XMLhelper::equal_str(cur->name, "position"))
-       {
-         pos = XMLhelper::parse_vector(doc, cur);
+  XMLReader reader(doc, cur);
+  reader.read_vector("position", pos);
        }
       else if (XMLhelper::equal_str(cur->name, "width"))
        {





reply via email to

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