pingus-cvs
[Top][All Lists]
Advanced

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

[Pingus-CVS] CVS: Games/Pingus/src/input controller.cxx,1.13,1.14


From: grumbel
Subject: [Pingus-CVS] CVS: Games/Pingus/src/input controller.cxx,1.13,1.14
Date: 16 Aug 2002 17:12:15 -0000

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

Modified Files:
        controller.cxx 
Log Message:
fixed bug in parsing code which caused a skip over the first element

Index: controller.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/input/controller.cxx,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- controller.cxx      16 Aug 2002 15:14:00 -0000      1.13
+++ controller.cxx      16 Aug 2002 17:12:13 -0000      1.14
@@ -68,8 +68,13 @@
          }
 
        else if ( ! strcmp(reinterpret_cast<const char*>(cur->name), 
"controller-config"))
-         cur = XMLhelper::skip_blank(cur->children);
-         
+         {
+           // FIXME: handling two levels of the xml tree in the same
+           // FIXME: while-loop isn't really nice
+           cur = XMLhelper::skip_blank(cur->children);
+           continue;
+         }
+
        else if ( ! strcmp(reinterpret_cast<const char*>(cur->name), 
"standard-pointer"))
           standard_pointer = 
PointerFactory::create(XMLhelper::skip_blank(cur->children));
          





reply via email to

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