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.10,1.11


From: grumbel
Subject: [Pingus-CVS] CVS: Games/Pingus/src/input controller.cxx,1.10,1.11
Date: 15 Aug 2002 11:35:15 -0000

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

Modified Files:
        controller.cxx 
Log Message:
++it is/(can be) faster than it++, so its better to get used to the first one

Index: controller.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/input/controller.cxx,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- controller.cxx      15 Aug 2002 10:57:15 -0000      1.10
+++ controller.cxx      15 Aug 2002 11:35:13 -0000      1.11
@@ -152,7 +152,7 @@
   void
   Controller::update (float delta)
   {
-    for (std::list<Event*>::iterator it = events.begin(); it != events.end(); 
it++)
+    for (std::list<Event*>::iterator it = events.begin(); it != events.end(); 
++it)
       delete *it;
 
     events.clear ();
@@ -185,7 +185,7 @@
            events.push_back(new 
ButtonEvent(static_cast<ButtonName>(buttons[i].first), released));
        }
       
-        
+    std::cout << "ActionAxis: " << action_axis->get_pos() << std::endl;
     if (action_axis->get_pos())
       if (action_axis->get_pos() > 0)
         events.push_back(new AxisEvent(up));





reply via email to

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