Skip to content

Commit

Permalink
Comment garbage collection system
Browse files Browse the repository at this point in the history
  • Loading branch information
bl0ckeduser committed Dec 3, 2011
1 parent eb61995 commit 50e3429
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bullet.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ void bulletTick(game_obj* bul)
if(bul->data[BULLET_EXPLODED]==1)
{
++bul->data[BULLET_EXPLODED];

/* The bullet is not immediately deleted,
but rather scheduled for deletion and
deleted when gc_collect() is called. */
deleteNode(bul);
}

Expand Down

0 comments on commit 50e3429

Please sign in to comment.