summaryrefslogtreecommitdiffhomepage
path: root/src/bullet.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bullet.c')
-rw-r--r--src/bullet.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/bullet.c b/src/bullet.c
index 64b4a9c..5bdd8f2 100644
--- a/src/bullet.c
+++ b/src/bullet.c
@@ -29,6 +29,15 @@ deinit_bullets(void)
cvec_bullet_t_drop(&bullets);
}
+void
+reset_bullets(void)
+{
+ c_foreach_rv(i, cvec_bullet_t, bullets)
+ {
+ bullet_destroy(i.ref);
+ }
+}
+
bullet_t *
spawn_bullet(
float x,