Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
vor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
renamed gamerate to framelen
[vor.git]
/
sound.c
diff --git
a/sound.c
b/sound.c
index
d522955
..
88d8d4c
100644
(file)
--- a/
sound.c
+++ b/
sound.c
@@
-1,8
+1,7
@@
+#include "args.h"
#include "sound.h"
#include "config.h"
#include "sound.h"
#include "config.h"
-extern int sound_flag, music_flag;
-
#define TUNE_TITLE_PAGE 0
#define TUNE_GAMEPLAY 1
#define TUNE_HIGH_SCORE_ENTRY 2
#define TUNE_TITLE_PAGE 0
#define TUNE_GAMEPLAY 1
#define TUNE_HIGH_SCORE_ENTRY 2
@@
-72,7
+71,7
@@
init_sound() {
void
play_sound(int i) {
void
play_sound(int i) {
- if(!sound_flag) return;
+ if(!opt_sound) return;
debug(printf ("play sound %d on first free channel\n",i));
Mix_PlayChannel(-1, wav[i], 0);
}/*}}}*/
debug(printf ("play sound %d on first free channel\n",i));
Mix_PlayChannel(-1, wav[i], 0);
}/*}}}*/
@@
-82,7
+81,7
@@
int playing=-1;
void
play_tune(int i) {/*{{{*/
void
play_tune(int i) {/*{{{*/
- if(!music_flag) return;
+ if(!opt_music) return;
if (playing==i)
return;
if (playing) {
if (playing==i)
return;
if (playing) {