summaryrefslogtreecommitdiff
path: root/src/game.c
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik@amftech.nl>2023-10-27 21:01:21 +0200
committerAldrik Ramaekers <aldrik@amftech.nl>2023-10-27 21:01:21 +0200
commit641f81317a5b5cea6b3c5a4c65b1ca4313b0d8c0 (patch)
tree391bb0b6536ca2247a371f16a44249b8a5f963d6 /src/game.c
parent9d0bb9f229155546fde8b4f666d2682ad5ac606f (diff)
audio, add throwable
Diffstat (limited to 'src/game.c')
-rw-r--r--src/game.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game.c b/src/game.c
index 4c5f682..697624f 100644
--- a/src/game.c
+++ b/src/game.c
@@ -189,6 +189,7 @@ void update_server(platform_window* window) {
update_zombies_server(window);
broadcast_zombies = platform_get_time(TIME_FULL, TIME_NS) - broadcast_zombies;
+ update_throwables_server(window);
broadcast_stamp = platform_get_time(TIME_FULL, TIME_NS);
broadcast_to_clients(create_protocol_user_list());
@@ -277,6 +278,7 @@ void update_client(platform_window* window) {
void update_game(platform_window* window) {
clear_bullets();
+ clear_throwables();
if (global_state.server) {
update_server(window);
@@ -295,6 +297,7 @@ void update_game(platform_window* window) {
draw_zombie_chunks(window);
draw_drops(window);
draw_bullets(window);
+ draw_throwables(window);
#ifdef MODE_DEBUG
if (!is_editing_map)