From 7b932c8e016289d8a2a99b7d31f72de4ed9d234f Mon Sep 17 00:00:00 2001 From: Ricardo Cruz Date: Sun, 11 Apr 2004 22:30:48 +0000 Subject: [PATCH] Fixed a simple bug that was not letting levelsets to be added. Added a levelset for Wansti! These levels are great :) SVN-Revision: 496 --- data/levels/wansti/info | 4 ++++ src/title.cpp | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 data/levels/wansti/info diff --git a/data/levels/wansti/info b/data/levels/wansti/info new file mode 100644 index 000000000..9efe4d8de --- /dev/null +++ b/data/levels/wansti/info @@ -0,0 +1,4 @@ +;SuperTux-Level-Subset +(supertux-level-subset + (title "Marek Wansti collection") + (description "Contributed")) \ No newline at end of file diff --git a/src/title.cpp b/src/title.cpp index 60eaa4ef1..da135d97c 100644 --- a/src/title.cpp +++ b/src/title.cpp @@ -76,8 +76,8 @@ void update_contrib_menu() for (int i = 0; i < level_subsets.num_items; ++i) { st_subset subset; - subset.load(level_subsets.item[0]); - contrib_menu->additem(MN_GOTO, subset.title.c_str(), 0, contrib_subset_menu); + subset.load(level_subsets.item[i]); + contrib_menu->additem(MN_GOTO, subset.title.c_str(), i, contrib_subset_menu); contrib_subsets.push_back(subset); } -- 2.11.0