Skip to content

Commit

Permalink
Removed AddonMenu sorting code, since Addons are order dependend they…
Browse files Browse the repository at this point in the history
… 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.
  • Loading branch information
Grumbel committed Aug 26, 2014
1 parent 9625cc9 commit 575ee78
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/supertux/menu/addon_menu.cpp
Expand Up @@ -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();
}

Expand Down

0 comments on commit 575ee78

Please sign in to comment.