From 83523f868acd4968ef09a1c8711ad75b8b9c32a7 Mon Sep 17 00:00:00 2001 From: Steve Date: Mon, 29 Feb 2016 09:23:14 +0000 Subject: [PATCH] Use battle sound (distance) instead of normal sound. --- src/battle/extractionPoint.c | 2 +- src/battle/extractionPoint.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/battle/extractionPoint.c b/src/battle/extractionPoint.c index f603279..c8d1b20 100644 --- a/src/battle/extractionPoint.c +++ b/src/battle/extractionPoint.c @@ -67,7 +67,7 @@ static void handleFleeingEntities(void) addEscapeEffect(e); - playSound(SND_JUMP); + playBattleSound(SND_JUMP, e->x, e->y); } } } diff --git a/src/battle/extractionPoint.h b/src/battle/extractionPoint.h index 411ff35..66f2ecf 100644 --- a/src/battle/extractionPoint.h +++ b/src/battle/extractionPoint.h @@ -24,7 +24,7 @@ extern SDL_Texture *getTexture(char *filename); extern Entity *spawnEntity(void); extern Entity **getAllEntsWithin(int x, int y, int w, int h, Entity *ignore); extern int getDistance(int x1, int y1, int x2, int y2); -extern void playSound(int id); +extern void playBattleSound(int id, int x, int y); extern Battle battle; extern Entity *self;