Mercurial > MadButterfly
diff src/event.c @ 159:b90abd31a281
Postponse free of coords, shapes, and paints when the rdman is dirty.
- Life-cycle of shapes and paints are managed by rdman.
- Add redraw_man_t::free_objs to collect objects their freeing are
postonsed.
Know Issue:
- Bullet of tank are not removed from screen when it is go out the range
of the map.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Sun, 05 Oct 2008 23:32:58 +0800 |
parents | c1cdd3fcd28f |
children | c7e5b8779bb5 |
line wrap: on
line diff
--- a/src/event.c Fri Oct 03 10:22:08 2008 +0800 +++ b/src/event.c Sun Oct 05 23:32:58 2008 +0800 @@ -11,18 +11,6 @@ #define ARRAY_EXT_SZ 64 -static int extend_memblk(void **buf, int o_size, int n_size) { - void *new_buf; - - new_buf = realloc(*buf, n_size); - if(new_buf == NULL) - return ERR; - - *buf = new_buf; - - return OK; -} - DARRAY_DEFINE(geos, geo_t *); /*! \brief Add a geo_t object to general geo list.