along with Lugaru. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <vector>
-#include <string>
-#include <set>
+#include "Menu/Menu.hpp"
-#include "Graphic/gamegl.h"
-#include "Level/Campaign.h"
-#include "Menu/Menu.h"
-#include "User/Settings.h"
-#include "Utils/Input.h"
+#include "Audio/openal_wrapper.hpp"
+#include "Graphic/gamegl.hpp"
+#include "Level/Campaign.hpp"
+#include "User/Settings.hpp"
+#include "Utils/Input.hpp"
// Should not be needed, Menu should call methods from other classes to launch maps and challenges and so on
-#include "Level/Awards.h"
-#include "Audio/openal_wrapper.h"
+#include "Level/Awards.hpp"
+
+#include <set>
+#include <string>
+#include <vector>
using namespace Game;
int Menu::getSelected(int mousex, int mousey)
{
- for (vector<MenuItem>::iterator it = items.begin(); it != items.end(); it++)
+ for (vector<MenuItem>::reverse_iterator it = items.rbegin(); it != items.rend(); it++)
if (it->type == MenuItem::BUTTON || it->type == MenuItem::IMAGEBUTTON || it->type == MenuItem::MAPMARKER) {
int mx = mousex;
int my = mousey;