mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-17 21:24:01 +00:00
Support for null loc pool-gets + Pooling Miauw's Say() virtualspeakers
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user