[READY] Fixes de-initialization of cleanables-ash (#35191)

* Fixes de-initialization of cleanables-ash

* boop

* :x

* better execution

* prevent pile-up

* special ash

* comment cleanup

* cleanup 2
This commit is contained in:
Jittai
2018-02-04 02:12:22 -06:00
committed by duncathan salt
parent 72caeaf2fb
commit df1a99ed8d
3 changed files with 8 additions and 7 deletions
+2 -6
View File
@@ -241,15 +241,11 @@ GLOBAL_LIST_EMPTY(crematoriums)
M.ghostize()
qdel(M)
var/ash_check = FALSE
for(var/obj/O in conts) //conts defined above, ignores crematorium and tray
if(istype(O,/obj/effect/decal/cleanable/ash)) ash_check = TRUE//creates the illusion of ash piling up
qdel(O)
var/obj/effect/decal/cleanable/ash/a
if(ash_check) a=new/obj/effect/decal/cleanable/ash/large(src)//cont. illusion of more ash
else a=new/obj/effect/decal/cleanable/ash(src)
a.layer = connected.layer//Makes the ash the same layer as the tray.
if(!locate(/obj/effect/decal/cleanable/ash) in get_step(src, dir))//prevent pile-up
new/obj/effect/decal/cleanable/ash/crematorium(src)
sleep(30)