Author: cycholka
Date: Thu Feb 28 10:25:20 2008
New Revision: 24140

URL: http://svn.gna.org/viewcvs/wesnoth?rev=24140&view=rev
Log:
Fix UI sounds toggle crash on windows. Make the game not use Mix_SetDistance() 
on UI channel. 

Modified:
    trunk/src/sound.cpp

Modified: trunk/src/sound.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/sound.cpp?rev=24140&r1=24139&r2=24140&view=diff
==============================================================================
--- trunk/src/sound.cpp (original)
+++ trunk/src/sound.cpp Thu Feb 28 10:25:20 2008
@@ -719,7 +719,8 @@
                return false;
        }
        channel_ids[channel] = id;
-       Mix_SetDistance(channel, distance);
+       if(group != SOUND_UI)
+               Mix_SetDistance(channel,distance);
 
        sound_cache_chunk temp_chunk(file); // search the sound cache on this 
key
        it_bgn = sound_cache.begin(), it_end = sound_cache.end();


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to