mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 13:10:02 +01:00
Fixes a runtime caused by an improperly affected variable. (#52628)
* Fixes a runtime caused by an improperly affected variable. * Updated iscleanable() * Update code/__DEFINES/is_helpers.dm Co-authored-by: Kyle Spier-Swenson <kyleshome@gmail.com> Co-authored-by: Kyle Spier-Swenson <kyleshome@gmail.com>
This commit is contained in:
committed by
SkyratBot
co-authored by
Kyle Spier-Swenson
parent
0fe20fe387
commit
7af74a91ac
@@ -172,7 +172,7 @@ GLOBAL_LIST_INIT(turfs_without_ground, typecacheof(list(
|
||||
|
||||
#define ismecha(A) (istype(A, /obj/mecha))
|
||||
|
||||
#define ismopable(A) (A.layer <= HIGH_SIGIL_LAYER) //If something can be cleaned by floor-cleaning devices such as mops or clean bots
|
||||
#define ismopable(A) (A && (A.layer <= HIGH_SIGIL_LAYER)) //If something can be cleaned by floor-cleaning devices such as mops or clean bots
|
||||
|
||||
#define isorgan(A) (istype(A, /obj/item/organ))
|
||||
|
||||
|
||||
@@ -1072,7 +1072,7 @@
|
||||
if(reac_volume >= 1)
|
||||
T.wash(clean_types)
|
||||
for(var/am in T)
|
||||
var/atom/movable/movable_content
|
||||
var/atom/movable/movable_content = am
|
||||
if(ismopable(movable_content)) // Mopables will be cleaned anyways by the turf wash
|
||||
continue
|
||||
movable_content.wash(clean_types)
|
||||
|
||||
Reference in New Issue
Block a user