mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
Fix compiler errors.
This commit is contained in:
@@ -64,7 +64,7 @@ var/list/masterPool = list()
|
|||||||
*/
|
*/
|
||||||
/proc/getFromPool(const/A, const/B)
|
/proc/getFromPool(const/A, const/B)
|
||||||
if (isnull(masterPool[A]))
|
if (isnull(masterPool[A]))
|
||||||
#if DEBUG_OBJECT_POOL
|
#ifdef DEBUG_OBJECT_POOL
|
||||||
world << "DEBUG_OBJECT_POOL: new proc has been called ([A])."
|
world << "DEBUG_OBJECT_POOL: new proc has been called ([A])."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -74,7 +74,7 @@ var/list/masterPool = list()
|
|||||||
masterPool[A] -= Object
|
masterPool[A] -= Object
|
||||||
var/objectLength = length(masterPool[A])
|
var/objectLength = length(masterPool[A])
|
||||||
|
|
||||||
#if DEBUG_OBJECT_POOL
|
#ifdef DEBUG_OBJECT_POOL
|
||||||
world << "DEBUG_OBJECT_POOL: getFromPool([A]) [objectLength] left."
|
world << "DEBUG_OBJECT_POOL: getFromPool([A]) [objectLength] left."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -102,13 +102,13 @@ var/list/masterPool = list()
|
|||||||
|
|
||||||
switch(length(masterPool[Object.type]))
|
switch(length(masterPool[Object.type]))
|
||||||
if (MAINTAINING_OBJECT_POOL_COUNT to 1.#INF)
|
if (MAINTAINING_OBJECT_POOL_COUNT to 1.#INF)
|
||||||
#if DEBUG_OBJECT_POOL
|
#ifdef DEBUG_OBJECT_POOL
|
||||||
world << "DEBUG_OBJECT_POOL: returnToPool([Object.type]) exceeds [num2text(MAINTAINING_OBJECT_POOL_COUNT)] discarding..."
|
world << "DEBUG_OBJECT_POOL: returnToPool([Object.type]) exceeds [num2text(MAINTAINING_OBJECT_POOL_COUNT)] discarding..."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return
|
return
|
||||||
if (0)
|
if (0)
|
||||||
#if DEBUG_OBJECT_POOL
|
#ifdef DEBUG_OBJECT_POOL
|
||||||
world << "DEBUG_OBJECT_POOL: [Object.type] pool is empty, recreating pool."
|
world << "DEBUG_OBJECT_POOL: [Object.type] pool is empty, recreating pool."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -116,7 +116,7 @@ var/list/masterPool = list()
|
|||||||
|
|
||||||
masterPool[Object.type] += Object
|
masterPool[Object.type] += Object
|
||||||
|
|
||||||
#if DEBUG_OBJECT_POOL
|
#ifdef DEBUG_OBJECT_POOL
|
||||||
world << "DEBUG_OBJECT_POOL: returnToPool([Object.type]) [length(masterPool[Object.type])] left."
|
world << "DEBUG_OBJECT_POOL: returnToPool([Object.type]) [length(masterPool[Object.type])] left."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user