--- deliantra/server/common/utils.C 2006/09/16 22:24:12 1.16 +++ deliantra/server/common/utils.C 2006/12/11 21:32:16 1.20 @@ -99,11 +99,7 @@ if (max < 1 || diff < 1) { -#ifndef WIN32 - LOG (llevError, "Calling random_roll with min=%lld max=%lld\n", min, max); -#else - LOG (llevError, "Calling random_roll with min=%I64d max=%I64d\n", min, max); -#endif + LOG (llevError, "Calling random_roll with min=%" PRId64 " max=%" PRId64 "\n", min, max); return (min); /* avoids a float exception */ } @@ -547,6 +543,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 +594,4 @@ memcpy (dst, src, len + 1); } +