summaryrefslogtreecommitdiff
path: root/src/throwables.c
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik@amftech.nl>2023-10-28 12:34:52 +0200
committerAldrik Ramaekers <aldrik@amftech.nl>2023-10-28 12:34:52 +0200
commit5de0682c37fc8e9713bb566a637f19a3795abc4a (patch)
tree3269724b9027205faaa5792262ced3b4f3f064f7 /src/throwables.c
parent06d520eb39b2448ee08dce9010651a423115c798 (diff)
prep for synched audio
Diffstat (limited to 'src/throwables.c')
-rw-r--r--src/throwables.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/throwables.c b/src/throwables.c
index 33f6137..1ad761f 100644
--- a/src/throwables.c
+++ b/src/throwables.c
@@ -96,13 +96,13 @@ void update_throwables_server(platform_window* window) {
throwables[i].direction.z = -throwables[i].direction.z*0.7;
throwables[i].bounces++;
- play_positioned_sound(CHANNEL_THROWABLES, wav_throwable_bounce, b.position, 8);
+ add_audio_event_to_queue(EVENT_BOUNCE_THROWABLE, b.player_id, b.position);
if (throwables[i].bounces >= 3) throwables[i].direction.z = 0;
}
if (check_if_throwable_collided_with_object(&throwables[i], window, oldpos, throwables[i].position, &throwables[i].direction)) {
- play_positioned_sound(CHANNEL_THROWABLES, wav_throwable_bounce, b.position, 8);
+ add_audio_event_to_queue(EVENT_BOUNCE_THROWABLE, b.player_id, b.position);
}
}
}