* Made Mr Bomb preload the "explosion" sound on creation. Otherwise, if the first Mr Bomb in a level is killed e.g. by Star Power, the game stutters.
SVN-Revision: 5129
#include "bomb.hpp"
#include "object/explosion.hpp"
#include "sprite/sprite_manager.hpp"
+#include "audio/sound_manager.hpp"
MrBomb::MrBomb(const lisp::Lisp& reader)
: WalkingBadguy(reader, "images/creatures/mr_bomb/mr_bomb.sprite", "left", "right")
max_drop_height = 16;
grabbed = false;
+ //Prevent stutter when Tux jumps on Mr Bomb
+ sound_manager->preload("sounds/explosion.wav");
+
//Check if we need another sprite
if( !reader.get( "sprite", sprite_name ) ){
return;
walk_speed = 80;
max_drop_height = 16;
grabbed = false;
+ sound_manager->preload("sounds/explosion.wav");
}
void
add_label(_("Language"));
add_hl();
add_entry(0, std::string("(")+_("auto-detect language")+")");
+ add_entry(1, "English");
int mnid = 10;
std::set<std::string> languages = dictionary_manager.get_languages();
config->save();
Menu::set_current(0);
}
+ else if (item->id == 1) {
+ config->locale = "en";
+ dictionary_manager.set_language(config->locale);
+ config->save();
+ Menu::set_current(0);
+ }
int mnid = 10;
std::set<std::string> languages = dictionary_manager.get_languages();
for (std::set<std::string>::iterator i = languages.begin(); i != languages.end(); i++) {