projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20060319-2-src
[rocksndiamonds.git]
/
src
/
game_em
/
sound.c
diff --git
a/src/game_em/sound.c
b/src/game_em/sound.c
index e230d9924f24349f51ab557d80100821a04814c3..5aedabb35abb1cbf42faaa23b67b32e6502e6883 100644
(file)
--- a/
src/game_em/sound.c
+++ b/
src/game_em/sound.c
@@
-20,9
+20,6
@@
#include <soundcard.h>
#endif
#include <soundcard.h>
#endif
-#include "global.h"
-#include "sample.h"
-
static char audioname[] = "/dev/audio";
static const int sound_priority[SAMPLE_MAX] =
static char audioname[] = "/dev/audio";
static const int sound_priority[SAMPLE_MAX] =
@@
-97,7
+94,9
@@
int sound_thread(void)
{
/* pick sounds to play, if any */
{
/* pick sounds to play, if any */
- if (sound_play[SAMPLE_exit] || sound_play[SAMPLE_die])
+ if (sound_play[SAMPLE_exit_open] ||
+ sound_play[SAMPLE_exit_leave] ||
+ sound_play[SAMPLE_die])
sound_play[SAMPLE_boom] = 0; /* no explosions if player goes home */
mix_count = 0;
sound_play[SAMPLE_boom] = 0; /* no explosions if player goes home */
mix_count = 0;