X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=blobdiff_plain;f=sound.c;h=16f3d607c0ed65de60bacdd2666b09091c5ae81f;hp=5f977566f28da12ddf909168a9a0eb7f24eedf63;hb=3079660eb1f60a861b677b746da581c4c0e6c3dd;hpb=66742cd79da77c5db0501d4b4ba8cc1f46f948b9 diff --git a/sound.c b/sound.c index 5f97756..16f3d60 100644 --- a/sound.c +++ b/sound.c @@ -70,14 +70,14 @@ void play_sound(int i) { if(!opt_sound) return; Mix_PlayChannel(-1, wav[i], 0); -}/*}}}*/ +} int playing=-1; void -play_tune(int i) {/*{{{*/ - if(!opt_music) return; +play_tune(int i) { + if(!opt_sound) return; if (playing==i) return; if (playing) {