aboutsummaryrefslogtreecommitdiff
path: root/collision_system.c
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2023-05-07 09:37:45 +1000
committerquou <quou@disroot.org>2023-05-07 09:37:45 +1000
commit40eb179043b77f011fb1048c386ee187f64569d0 (patch)
treeebae794ec0b3b8851b8c29119ada06555f49d4b6 /collision_system.c
parent47e7976922f5c17505c7c5a3377c3735649e3dcc (diff)
Add waves and some more polish.
Diffstat (limited to 'collision_system.c')
-rw-r--r--collision_system.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/collision_system.c b/collision_system.c
index cf1378c..ed05817 100644
--- a/collision_system.c
+++ b/collision_system.c
@@ -47,7 +47,7 @@ static void handle_bullet_vs_player(
pos = &world->positions[bullet];
- player_take_damage(&world->player, 1);
+ player_take_damage(world, &world->player, 1);
destroy_entity(world, bullet);
new_enemy_bullet_explosion(world, pos->x, pos->y);
}