Corrected bug where Shift and Kaleidoscope magic tools would crash when sound was disabled.

This commit is contained in:
William Kendrick 2007-12-01 21:21:31 +00:00
parent 9a3b9bec14
commit f2c7277d06
2 changed files with 11 additions and 3 deletions

View file

@ -9,12 +9,17 @@ http://www.tuxpaint.org/
$Id$
2007.November.27 (0.9.19)
2007.December.1 (0.9.19)
* Localization Updates:
---------------------
* Danish translation
Joe Hansen <joedalton2@yahoo.dk>
* Bug Fixes
---------
* Corrected bug where Shift and Kaleidoscope magic tools would crash
when sound was disabled.
2007.November.17 (0.9.18)
* Interface Improvements:

View file

@ -22,7 +22,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
(See COPYING.txt)
June 14, 2002 - November 21, 2007
June 14, 2002 - December 1, 2007
$Id$
*/
@ -17181,7 +17181,10 @@ void special_notify(int flags)
void magic_stopsound(void)
{
#ifndef NOSOUND
Mix_HaltChannel(0);
if (mute || !use_sound)
return;
Mix_HaltChannel(0);
#endif
}