+ WorldMapNS::WorldMap worldmap;
+ std::set<std::string>::iterator it = worldmap_list.begin();
+ for(int i = index; i > 0; --i)
+ ++it;
+
+ std::string map_filename = *it;
+
+ worldmap.set_map_filename(map_filename);
+
+ // hack to erase the extension
+ unsigned int ext_pos = it->find_last_of(".");
+ if(ext_pos != std::string::npos)
+ map_filename.erase(ext_pos, map_filename.size() - ext_pos);
+
+ // TODO: slots should be available for contrib maps
+ worldmap.loadgame(st_save_dir + "/" + map_filename + "-slot1.stsg");
+
+ worldmap.display(); // run the map
+
+ Menu::set_current(main_menu);
+ }
+ else if (index < (int)contrib_subsets.size() + first_level_index)
+ {
+ index -= first_level_index;