summaryrefslogtreecommitdiff
path: root/src/drops.c
diff options
context:
space:
mode:
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});
}
}