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;