From: Ingo Ruhnke Date: Tue, 26 Aug 2014 06:35:30 +0000 (+0200) Subject: Removed AddonMenu sorting code, since Addons are order dependend they should never... X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=575ee7830c331b48172dccacc7a96188f8d6695b;hp=9625cc99df47b1e5214a54b837f1bac4436f8e68;p=supertux.git 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. --- diff --git a/src/supertux/menu/addon_menu.cpp b/src/supertux/menu/addon_menu.cpp index fa76a493b..2abbe7bff 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(); }