void enable_music(bool music_enabled);
void play_music(const std::string& filename, bool fade = false);
void stop_music(bool fade = true);
+
+ bool is_sound_enabled() { return sound_enabled; }
void update();
start_position.y + sin(angle) * radius);
movement = newpos - get_pos();
- source->set_position(get_pos());
+ if (sound_manager->is_sound_enabled())
+ source->set_position(get_pos());
}
void
Flame::activate()
{
+ if (!sound_manager->is_sound_enabled())
+ return;
+
delete source;
source = sound_manager->create_sound_source("sounds/flame.wav");
if(!source) {