Support for null loc pool-gets + Pooling Miauw's Say() virtualspeakers

This commit is contained in:
Remie Richards
2014-09-02 22:03:35 +01:00
parent 08676747e7
commit a70a1a52ae
3 changed files with 19 additions and 9 deletions

View File

@@ -301,10 +301,12 @@ datum/signal
if(!job)
job = "Unknown"
//SAY REWRITE RELATED CODE.
//This code is a little hacky, but it *should* work. Even though it'll result in a virtual speaker referencing another virtual speaker. vOv
var/atom/movable/virtualspeaker/virt = new(null)
//var/atom/movable/virtualspeaker/virt = new(null) //REMIE POOL
var/atom/movable/virtualspeaker/virt = PoolOrNew(/atom/movable/virtualspeaker,null)
world << "Virtual speaker collected/created from pool |Telecomms.dm|"
virt.name = source
virt.job = job
virt.faketrack = 1