Use battle sound (distance) instead of normal sound.
This commit is contained in:
parent
ef458b4041
commit
83523f868a
|
@ -67,7 +67,7 @@ static void handleFleeingEntities(void)
|
|||
|
||||
addEscapeEffect(e);
|
||||
|
||||
playSound(SND_JUMP);
|
||||
playBattleSound(SND_JUMP, e->x, e->y);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue