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

@ -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
}