Do not mix music if its volume is zero.
authorStephane Peter <megastep@lokigames.com>
Tue, 09 Nov 1999 20:45:52 +0000
changeset 16ada544ec16c6
parent 15 7463b2125f11
child 17 d5638c74656f
Do not mix music if its volume is zero.
music.c
     1.1 --- a/music.c	Mon Nov 08 22:24:31 1999 +0000
     1.2 +++ b/music.c	Tue Nov 09 20:45:52 1999 +0000
     1.3 @@ -157,6 +157,9 @@
     1.4  				}
     1.5  			}
     1.6  		}
     1.7 +		if ( music_volume <= 0 ) { /* Don't mix if volume is null */
     1.8 +			return;
     1.9 +		}
    1.10  		switch (music_playing->type) {
    1.11  #ifdef CMD_MUSIC
    1.12  			case MUS_CMD: