Added checks so that space cleaner reagent and borgs can clean floors now too!

This commit is contained in:
DJSnapshot
2013-12-16 22:07:54 -08:00
parent b79ad45087
commit c32df3852e
2 changed files with 6 additions and 1 deletions
@@ -1160,7 +1160,9 @@
if(module.type == /obj/item/weapon/robot_module/janitor)
var/turf/tile = loc
if(isturf(tile))
tile.clean_blood()
if (istype(tile, /turf/simulated))
var/turf/simulated/S = tile
S.dirt = 0
for(var/A in tile)
if(istype(A, /obj/effect))
if(istype(A, /obj/effect/rune) || istype(A, /obj/effect/decal/cleanable) || istype(A, /obj/effect/overlay))