Disable object pool debug.

This commit is contained in:
ESwordTheCat
2014-04-29 07:29:34 -08:00
parent ba817d819f
commit b3d0f22358

View File

@@ -48,7 +48,7 @@
* WARNING, only supports /mob and /obj.
*/
#define DEBUG_OBJECT_POOL 1
#define DEBUG_OBJECT_POOL 0
#define MAINTAINING_OBJECT_POOL_COUNT 20
var/list/masterPool = list()
@@ -104,6 +104,7 @@ var/list/masterPool = list()
#endif
masterPool[Object.type] = list()
// A way to limit
else if (length(masterPool[Object.type]) > MAINTAINING_OBJECT_POOL_COUNT)
#if DEBUG_OBJECT_POOL
world << "DEBUG_OBJECT_POOL: returnToPool([Object.type]) exceeds [num2text(MAINTAINING_OBJECT_POOL_COUNT)] discarding..."