diff --git a/data/sounds/poker.wav b/data/sounds/poker.wav new file mode 100644 index 0000000..c135273 Binary files /dev/null and b/data/sounds/poker.wav differ diff --git a/defs.h b/defs.h index 3b68649..3942da3 100644 --- a/defs.h +++ b/defs.h @@ -201,7 +201,7 @@ /* enums */ /* sounds */ -#define MAXFX 41 +#define MAXFX 42 #define FX_SHOOT 0 #define FX_SLAM 1 #define FX_KILL 2 @@ -243,6 +243,7 @@ #define FX_ENGAGED 38 #define FX_FLOOD 39 #define FX_CARD 40 +#define FX_POKER 41 // card suits #define CS_HEART 1 diff --git a/rc.c b/rc.c index b1f4704..3737f72 100644 --- a/rc.c +++ b/rc.c @@ -5296,6 +5296,7 @@ int initsound(void) { loadfx(FX_ENGAGED, "engaged.wav"); loadfx(FX_FLOOD, "flood.wav"); loadfx(FX_CARD, "card.wav"); + loadfx(FX_POKER, "poker.wav"); // load sound effects for (i = 0; i < MAXFX; i++) { @@ -6009,6 +6010,8 @@ void gaincard(sprite_t *s, int cardid) { // display BIG message addoutlinetext(320,190,TEXTSIZE_POKER,getpokermsg(pokereffect),&green, &black, POKERDELAY); + playfx(FX_POKER); + } }