Mercurial > MadButterfly
diff examples/tank/tank_main.c @ 156:2aad042b30a4
Bullet would be detected to hit a wall (not mud).
1. It will hide bullet before remove it.
2. The program should not be removed until shapes are redrawed.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Wed, 01 Oct 2008 14:58:27 +0800 |
parents | 6749f6639924 |
children | 5cd12609a5c7 |
line wrap: on
line diff
--- a/examples/tank/tank_main.c Wed Oct 01 14:46:08 2008 +0800 +++ b/examples/tank/tank_main.c Wed Oct 01 14:58:27 2008 +0800 @@ -345,6 +345,9 @@ if(bullet->hit_tmr != NULL) mb_tman_remove(bullet->tman, bullet->hit_tmr); + + coord_hide(bullet->coord_pos); + rdman_coord_changed(rdman, bullet->coord_pos); /*! \todo Simplify the procdure of using observer pattern. */ factory = rdman_get_ob_factory(rdman);