Non fulltile windows don't get blood on them, spacecleaner cleans blood more reliably (#26886)

This commit is contained in:
Qwertytoforty
2024-09-27 14:50:24 -04:00
committed by GitHub
parent a42b91ea99
commit 594ff57549
2 changed files with 2 additions and 4 deletions
@@ -55,7 +55,7 @@
var/turf/T = get_turf(src)
check_gravity(T)
if((T && (T.density)) || !gravity_check || locate(/obj/structure/window/) in T || locate(/obj/structure/grille/) in T)
if(!istype(src, /obj/effect/decal/cleanable/blood/footprints) && ((T && (T.density)) || !gravity_check || locate(/obj/structure/window/full) in T || locate(/obj/structure/grille/) in T))
off_floor = TRUE
layer = ABOVE_MOB_LAYER
plane = GAME_PLANE
@@ -61,9 +61,7 @@
if(iseffect(O))
var/obj/effect/E = O
if(E.is_cleanable())
var/obj/effect/decal/cleanable/blood/B = E
if(!(istype(B) && B.off_floor))
qdel(E)
qdel(E)
else
if(O.simulated)
O.color = initial(O.color)