Resolves #541. Thanks to Matt McCutchen for this patch.
git-svn-id: http://supertux.lethargik.org/svn/supertux/trunk/supertux@6291
837edb03-e0f3-0310-88ca-
d4d4e8b29345
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "lisp/parser.hpp"
#include "lisp/writer.hpp"
#include "physfs/ifile_stream.hpp"
#include "lisp/parser.hpp"
#include "lisp/writer.hpp"
#include "physfs/ifile_stream.hpp"
info->get("title", title);
info->get("description", description);
info->get("levelset", is_levelset);
info->get("title", title);
info->get("description", description);
info->get("levelset", is_levelset);
- info->get("levels", levels);
info->get("hide-from-contribs", hide_from_contribs);
// Level info file doesn't define any levels, so read the
info->get("hide-from-contribs", hide_from_contribs);
// Level info file doesn't define any levels, so read the
}
}
PHYSFS_freeList(files);
}
}
PHYSFS_freeList(files);
+
+ std::sort(levels.begin(), levels.end(), StringUtil::numeric_less);