forked from Mirrorlandia_minetest/minetest
Make sounds stop playing when entering game or mainmenu
This commit is contained in:
parent
4fd9715876
commit
43f98eb47c
@ -343,7 +343,7 @@ public:
|
|||||||
std::unordered_set<int> source_del_list;
|
std::unordered_set<int> source_del_list;
|
||||||
|
|
||||||
for (const auto &sp : m_sounds_playing)
|
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)
|
for (const auto &id : source_del_list)
|
||||||
deleteSound(id);
|
deleteSound(id);
|
||||||
|
Loading…
Reference in New Issue
Block a user