Merge pull request #12153 from duncathan/destroyfixes

Destroy() fixes
This commit is contained in:
Razharas
2015-10-06 09:27:41 +03:00
28 changed files with 52 additions and 57 deletions
+3 -1
View File
@@ -16,9 +16,11 @@ To put a object back in the pool, call PlaceInPool(object)
This will call destroy on the object, set its loc to null,
and reset all of its vars to their default
You can override your object's destroy to return QDEL_HINT_PLACEINPOOL
You can override your object's destroy to return QDEL_HINT_PUTINPOOL
to ensure its always placed in this pool (this will only be acted on if qdel calls destroy, and destroy will not get called twice)
For almost all pooling purposes, it is better to use the QDEL hint than to pool it directly with PlaceInPool
*/
var/global/list/GlobalPool = list()