--- deliantra/server/common/utils.C 2006/09/14 01:34:41 1.14 +++ deliantra/server/common/utils.C 2006/11/17 19:40:53 1.17 @@ -18,7 +18,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - The authors can be reached via e-mail at crossfire-devel@real-time.com + The authors can be reached via e-mail at */ /* @@ -202,7 +202,7 @@ /* decay and destroy persihable items in a map */ void -decay_objects (mapstruct *m) +decay_objects (maptile *m) { int x, y, destroy; object *op, *otmp; @@ -547,6 +547,23 @@ ///////////////////////////////////////////////////////////////////////////// +#if 0 +refcounted *refcounted::rc_first; + +refcounted::refcounted () +{ + refcnt = 0; + rc_next = rc_first; + rc_first = this; +} + +refcounted::~refcounted () +{ + assert (!rc_next); + assert (!refcnt); +} +#endif + void *alloc (int s) throw (std::bad_alloc) { void *p = g_slice_alloc (s); @@ -581,3 +598,4 @@ memcpy (dst, src, len + 1); } +