Fixed a simple bug that was not letting levelsets to be added.
authorRicardo Cruz <rick2@aeiou.pt>
Sun, 11 Apr 2004 22:30:48 +0000 (22:30 +0000)
committerRicardo Cruz <rick2@aeiou.pt>
Sun, 11 Apr 2004 22:30:48 +0000 (22:30 +0000)
Added a levelset for Wansti! These levels are great :)

SVN-Revision: 496

data/levels/wansti/info [new file with mode: 0644]
src/title.cpp

diff --git a/data/levels/wansti/info b/data/levels/wansti/info
new file mode 100644 (file)
index 0000000..9efe4d8
--- /dev/null
@@ -0,0 +1,4 @@
+;SuperTux-Level-Subset
+(supertux-level-subset
+  (title "Marek Wansti collection")
+  (description "Contributed"))
\ No newline at end of file
index 60eaa4e..da135d9 100644 (file)
@@ -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);
         }