summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2023-05-30 18:27:34 -0400
committerrealtradam <[email protected]>2023-05-30 18:27:34 -0400
commit3c6a193ccdbadaf3f512a2770d3b35970c39980f (patch)
treeb4a91c1d95caea04f340698696a0a99dee4b8696
parentfdffc6ef7cc37ae1c4d78f5f869d2b8f027d5aaa (diff)
parentaab847999947880ea67b7069e26aa2ad40ab86ae (diff)
downloadTOJam2023-3c6a193ccdbadaf3f512a2770d3b35970c39980f.tar.gz
TOJam2023-3c6a193ccdbadaf3f512a2770d3b35970c39980f.zip
Merge branch 'master' of github.com:realtradam/TOJam2023
-rw-r--r--src/bullet.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bullet.c b/src/bullet.c
index 77acaa7..4da1429 100644
--- a/src/bullet.c
+++ b/src/bullet.c
@@ -148,10 +148,13 @@ bullet_destroy(
cvec_bullet_t_value* bullet
)
{
+ if (bullet->id.world == &player_bullet_collision_world)
+ {
+ rodeo_audio_sound_play(pop_sound);
+ }
rodeo_collision_2d_world_item_destroy_by_id(bullet->id);
*bullet = *cvec_bullet_t_back(&bullets);
cvec_bullet_t_pop(&bullets);
- rodeo_audio_sound_play(pop_sound);
}
void bullet_wall_resolver(