diff options
Diffstat (limited to 'bullet.c')
-rw-r--r-- | bullet.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -75,6 +75,10 @@ void bullet_system(World* world) { pos->x += bullet->vx; pos->y += bullet->vy; bullet->life--; + + if (bullet->life <= 0) { + destroy_entity(world, i); + } } } } |