[Top][All Lists]
[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;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src/gui gui_manager.cxx,1.5,1.6,
grumbel <=
- Prev by Date:
[Pingus-CVS] CVS: Games/Pingus/src action_button.cxx,1.4,1.5 action_button.hxx,1.4,1.5 button_panel.cxx,1.7,1.8 button_panel.hxx,1.5,1.6 client.cxx,1.7,1.8 client.hxx,1.6,1.7 game_session.cxx,1.2,1.3 game_session.hxx,1.3,1.4 multiplayer_client_child.cxx,1.5,1.6 pingus_main.cxx,1.8,1.9 playfield.cxx,1.7,1.8 playfield.hxx,1.5,1.6 screen.hxx,1.4,1.5 screen_manager.cxx,1.3,1.4 screen_manager.hxx,1.4,1.5 theme.cxx,1.2,1.3
- Next by Date:
[Pingus-CVS] CVS: Games/Pingus/src client.cxx,1.8,1.9 hurry_up.hxx,1.2,1.3 pingus_counter.hxx,1.4,1.5 playfield.cxx,1.8,1.9 playfield.hxx,1.6,1.7 smallmap.cxx,1.7,1.8 time_display.hxx,1.3,1.4 view.cxx,1.4,1.5 view.hxx,1.3,1.4
- Previous by thread:
[Pingus-CVS] CVS: Games/Pingus/src action_button.cxx,1.4,1.5 action_button.hxx,1.4,1.5 button_panel.cxx,1.7,1.8 button_panel.hxx,1.5,1.6 client.cxx,1.7,1.8 client.hxx,1.6,1.7 game_session.cxx,1.2,1.3 game_session.hxx,1.3,1.4 multiplayer_client_child.cxx,1.5,1.6 pingus_main.cxx,1.8,1.9 playfield.cxx,1.7,1.8 playfield.hxx,1.5,1.6 screen.hxx,1.4,1.5 screen_manager.cxx,1.3,1.4 screen_manager.hxx,1.4,1.5 theme.cxx,1.2,1.3
- Next by thread:
[Pingus-CVS] CVS: Games/Pingus/src client.cxx,1.8,1.9 hurry_up.hxx,1.2,1.3 pingus_counter.hxx,1.4,1.5 playfield.cxx,1.8,1.9 playfield.hxx,1.6,1.7 smallmap.cxx,1.7,1.8 time_display.hxx,1.3,1.4 view.cxx,1.4,1.5 view.hxx,1.3,1.4
- Index(es):