summaryrefslogtreecommitdiff
path: root/src/drops.c
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik@amftech.nl>2023-10-29 13:53:19 +0100
committerAldrik Ramaekers <aldrik@amftech.nl>2023-10-29 13:53:19 +0100
commit61c5fb1e253f31d2faa3a0fc970ce4e18f32b205 (patch)
tree0220c5c8ad31d926c5a3223ef6ad7a341f309dd8 /src/drops.c
parent55898db4a9cf2b5721279d665918fc0eaa02c1cc (diff)
pickup sound
Diffstat (limited to 'src/drops.c')
-rw-r--r--src/drops.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/drops.c b/src/drops.c
index 9c4b48c..b97b8be 100644
--- a/src/drops.c
+++ b/src/drops.c
@@ -29,6 +29,8 @@ void update_drops_server() {
if (check_if_player_collided_with_box(*p, get_box_of_square(drops[i].position, drops[i].size))) {
handle_drop_pickup(p, &drops[i]);
+
+ add_audio_event_to_queue(EVENT_COLLECT, p->id, (vec3f){.x = p->playerx, .y = p->playery, .z = p->height});
}
}