From 575ee7830c331b48172dccacc7a96188f8d6695b Mon Sep 17 00:00:00 2001 From: Ingo Ruhnke Date: Tue, 26 Aug 2014 08:35:30 +0200 Subject: [PATCH] Removed AddonMenu sorting code, since Addons are order dependend they should never be sorted Meaning a skin pack with new graphics might shadow graphic files in another skin pack. Adding a manual way to reorder addons via Peek_Up/Down keys might be a good idea. --- src/supertux/menu/addon_menu.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/supertux/menu/addon_menu.cpp b/src/supertux/menu/addon_menu.cpp index fa76a493b56..2abbe7bffc7 100644 --- a/src/supertux/menu/addon_menu.cpp +++ b/src/supertux/menu/addon_menu.cpp @@ -93,14 +93,6 @@ AddonMenu::refresh() m_installed_addons = m_addon_manager.get_installed_addons(); m_repository_addons = m_addon_manager.get_repository_addons(); -#ifdef GRUMBEL - std::sort(m_addons.begin(), m_addons.end(), - [](const Addon& lhs, const Addon& rhs) - { - return lhs.title < lhs.title; - }); -#endif - rebuild_menu(); }