pingus-cvs
[Top][All Lists]
Advanced

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

[Pingus-CVS] CVS: Games/Pingus/src/gui gui_manager.cxx,1.5,1.6


From: grumbel
Subject: [Pingus-CVS] CVS: Games/Pingus/src/gui gui_manager.cxx,1.5,1.6
Date: 2 Aug 2002 11:53:54 -0000

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

Modified Files:
        gui_manager.cxx 
Log Message:
more fixes to the client, its basically playable again, even so escape 
handling, armageddon and Co. are still unusable

Index: gui_manager.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/gui/gui_manager.cxx,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- gui_manager.cxx     1 Aug 2002 21:40:02 -0000       1.5
+++ gui_manager.cxx     2 Aug 2002 11:53:52 -0000       1.6
@@ -184,8 +184,10 @@
 Component*
 GUIManager::component_at (int x, int y)
 {
-  for (std::vector<Component*>::iterator i = components.begin (); 
-       i != components.end (); ++i)
+  // we travel reversly through the component list, so that we get the
+  // top most component at first
+  for (std::vector<Component*>::reverse_iterator i = components.rbegin (); 
+       i != components.rend (); ++i)
     {
       if ((*i)->is_at (x, y))
        return *i;




reply via email to

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