# HG changeset patch # User Thinker K.F. Li # Date 1222844307 -28800 # Node ID 2aad042b30a4d74ca94043a8f1bdd4cb0c125622 # Parent 6749f6639924b81279ba9cf91b9c2720982a6adf 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. diff -r 6749f6639924 -r 2aad042b30a4 examples/tank/bang.svg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/examples/tank/bang.svg Wed Oct 01 14:58:27 2008 +0800 @@ -0,0 +1,92 @@ + + + + + + + + + + + image/svg+xml + + + + + + + Bang + + diff -r 6749f6639924 -r 2aad042b30a4 examples/tank/tank_main.c --- 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);