{
physic.enable_gravity(false);
countMe = false;
+ sound_manager->preload(SOUNDFILE);
sound_manager->preload("sounds/darthit.wav");
sound_manager->preload("sounds/stomp.wav");
}
{
physic.enable_gravity(false);
countMe = false;
+ sound_manager->preload(SOUNDFILE);
sound_manager->preload("sounds/darthit.wav");
sound_manager->preload("sounds/stomp.wav");
}
Dart::Dart(const Dart& other)
: BadGuy(other), parent(other.parent)
{
- sound_source.reset(sound_manager->create_sound_source(SOUNDFILE));
+ sound_manager->preload(SOUNDFILE);
sound_manager->preload("sounds/darthit.wav");
sound_manager->preload("sounds/stomp.wav");
}