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 axis_factory.cxx,1.4,1.5


From: grumbel
Subject: [Pingus-CVS] CVS: Games/Pingus/src/input axis_factory.cxx,1.4,1.5
Date: 15 Aug 2002 11:33:40 -0000

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

Modified Files:
        axis_factory.cxx 
Log Message:
- added workaround for blank node skip problem

Index: axis_factory.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/input/axis_factory.cxx,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- axis_factory.cxx    14 Aug 2002 12:41:22 -0000      1.4
+++ axis_factory.cxx    15 Aug 2002 11:33:38 -0000      1.5
@@ -65,9 +65,17 @@
     free(angle_str);
 
     cur = cur->children;
-    Button* button1 = ButtonFactory::create(cur);
+    // FIXME: We should add a helper function for this
+    if (xmlIsBlankNode(cur))
+      cur = cur->next;
+
+    Button* button1 = ButtonFactory::create(cur);   
+
     cur = cur->next;
-    Button* button2 = ButtonFactory::create(cur);    
+    if (xmlIsBlankNode(cur))
+      cur = cur->next;
+
+    Button* button2 = ButtonFactory::create(cur);
            
     return new ButtonAxis(angle, button1, button2);
   }





reply via email to

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