mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 09:15:29 +01:00 
			
		
		
		
	Make sounds stop playing when entering game or mainmenu
This commit is contained in:
		@@ -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);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user