mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
Disable object pool debug.
This commit is contained in:
@@ -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..."
|
||||
|
||||
Reference in New Issue
Block a user