level->get("name", name);
return name;
} catch(std::exception& e) {
- log_warning << "Problem getting name of '" << filename << "'." << std::endl;
+ log_warning << "Problem getting name of '" << filename << "': "
+ << e.what() << std::endl;
return "";
}
}
player->set_speedlimit(230); //MAX_WALK_XM
main_menu.reset(new Menu());
- main_menu->set_pos(SCREEN_WIDTH/2, 335);
+ main_menu->set_pos(SCREEN_WIDTH/2, SCREEN_HEIGHT/2 + 35);
main_menu->add_entry(MNID_STARTGAME, _("Start Game"));
main_menu->add_entry(MNID_LEVELS_CONTRIB, _("Contrib Levels"));
main_menu->add_submenu(_("Options"), get_options_menu());
void
TitleScreen::update(float elapsed_time)
{
- main_loop->set_speed(0.6);
+ main_loop->set_speed(0.6f);
Sector* sector = titlesession->get_current_sector();
sector->update(elapsed_time);
throw std::runtime_error("file is not a supertux-savegame.");
savegame->get("title", title);
- } catch(std::exception& e) {
+ } catch(std::exception& ) {
std::ostringstream slottitle;
slottitle << _("Slot") << " " << slot << " - " << _("Free");
return slottitle.str();