diff options
| author | Aldrik Ramaekers <aldrik@amftech.nl> | 2023-10-29 13:53:19 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@amftech.nl> | 2023-10-29 13:53:19 +0100 |
| commit | 61c5fb1e253f31d2faa3a0fc970ce4e18f32b205 (patch) | |
| tree | 0220c5c8ad31d926c5a3223ef6ad7a341f309dd8 /src/drops.c | |
| parent | 55898db4a9cf2b5721279d665918fc0eaa02c1cc (diff) | |
pickup sound
Diffstat (limited to 'src/drops.c')
| -rw-r--r-- | src/drops.c | 2 |
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}); } } |
