mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 01:53:45 +01:00
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;
|
||||
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user