buildmode fix + blueprints fix (#2261)

* Fixes Admin Buildmode Mass-Deletion making people nude, gives GetAllContents() an ignore typecache.

* sync turf.dm
This commit is contained in:
CitadelStationBot
2017-08-04 13:46:11 -05:00
committed by kevinz000
parent 32a7158a72
commit f5bc18bb55
3 changed files with 46 additions and 20 deletions
+15 -6
View File
@@ -491,17 +491,26 @@ Turf and target are separate in case you want to teleport some distance from a t
var/y=arcsin(x/sqrt(1+x*x))
return y
/atom/proc/GetAllContents()
/atom/proc/GetAllContents(list/ignore_typecache)
var/list/processing_list = list(src)
var/list/assembled = list()
if(ignore_typecache) //If there's a typecache, use it.
while(processing_list.len)
var/atom/A = processing_list[1]
processing_list -= A
if(ignore_typecache[A.type])
continue
processing_list |= (A.contents - assembled)
assembled |= A
while(processing_list.len)
var/atom/A = processing_list[1]
processing_list -= A
else //If there's none, only make this check once for performance.
while(processing_list.len)
var/atom/A = processing_list[1]
processing_list -= A
processing_list |= (A.contents - assembled)
processing_list |= (A.contents - assembled)
assembled |= A
assembled |= A
return assembled