Mercurial > MadButterfly
diff src/redraw_man.c @ 189:257af0ed5852
When a bullet hits a tank or wall, it shows a bang animation.
* Bang is not removed after animation stop.
* We want removing program and bang as animation actions.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Tue, 18 Nov 2008 09:04:40 +0800 |
parents | 530bb7728546 |
children | 54fdc2a65242 |
line wrap: on
line diff
--- a/src/redraw_man.c Fri Nov 07 15:18:22 2008 +0800 +++ b/src/redraw_man.c Tue Nov 18 09:04:40 2008 +0800 @@ -649,8 +649,10 @@ add_dirty_coord(rdman, coord); +#if 0 if(coord->flags & COF_HIDDEN) return OK; +#endif /* Make child coords dirty. */ for(child = preorder_coord_subtree(coord, coord); @@ -912,6 +914,9 @@ static void draw_shape(redraw_man_t *rdman, cairo_t *cr, shape_t *shape) { paint_t *fill, *stroke; + /*! \todo Move operator of shapes into singleton structures that define + * operators for them. + */ if(shape->fill || shape->stroke) { switch(shape->sh_type) { case SHT_PATH: