From efe062993b6f0075088d308caacf347e182f0b4e Mon Sep 17 00:00:00 2001 From: Linus Probert Date: Sat, 5 May 2018 21:36:16 +0200 Subject: [PATCH] Always play sound when daggers hit/miss something --- src/projectile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/projectile.c b/src/projectile.c index a566f96..320b8aa 100644 --- a/src/projectile.c +++ b/src/projectile.c @@ -92,7 +92,6 @@ projectile_update(Projectile *p, UpdateData *data) Uint32 dmg = stats_fight(&tmpStats, &space->monster->stats); if (dmg > 0) { gui_log("Your dagger pierced %s for %u damage", space->monster->lclabel, dmg); - mixer_play_effect(SWORD_HIT); data->player->stat_data.hits += 1; } if (get_random(2) >= 1) { @@ -102,6 +101,7 @@ projectile_update(Projectile *p, UpdateData *data) } monster_hit(space->monster, dmg); } + mixer_play_effect(SWORD_HIT); p->alive = false; }