Use battle sound (distance) instead of normal sound.

This commit is contained in:
Steve 2016-02-29 09:23:14 +00:00
parent ef458b4041
commit 83523f868a
2 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ static void handleFleeingEntities(void)
addEscapeEffect(e);
playSound(SND_JUMP);
playBattleSound(SND_JUMP, e->x, e->y);
}
}
}

View File

@ -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;