Skip to content

Commit

Permalink
Make sounds stop playing when entering game or mainmenu
Browse files Browse the repository at this point in the history
  • Loading branch information
nOOb3167 authored and SmallJoker committed Mar 24, 2018
1 parent 4fd9715 commit 43f98eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/sound_openal.cpp
Expand Up @@ -343,7 +343,7 @@ class OpenALSoundManager: public ISoundManager
std::unordered_set<int> source_del_list;

for (const auto &sp : m_sounds_playing)
source_del_list.insert(sp.second->source_id);
source_del_list.insert(sp.first);

for (const auto &id : source_del_list)
deleteSound(id);
Expand Down

0 comments on commit 43f98eb

Please sign in to comment.