From f3df171cb03dcb19cf2e8982b093ef150ccc324d Mon Sep 17 00:00:00 2001 From: Elizabeth Lavenza Date: Sun, 31 Mar 2024 00:03:53 -0400 Subject: [PATCH] Slightly optimise micro bumping --- modular_sand/code/modules/resize/resizing.dm | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/modular_sand/code/modules/resize/resizing.dm b/modular_sand/code/modules/resize/resizing.dm index 913fcbb294..a5eb27adb8 100644 --- a/modular_sand/code/modules/resize/resizing.dm +++ b/modular_sand/code/modules/resize/resizing.dm @@ -7,10 +7,8 @@ return FALSE //Micro is on a table. - var/turf/steppyspot = target.loc - for(var/thing in steppyspot.contents) - if(istype(thing, /obj/structure/table)) - return TRUE + if(locate(/obj/structure/table) in target.loc) + return TRUE //Both small. if(get_size(user) <= RESIZE_A_TINYMICRO && get_size(target) <= RESIZE_A_TINYMICRO) @@ -48,10 +46,8 @@ return FALSE //If on a table, don't - var/turf/steppyspot = target.loc - for(var/thing in steppyspot.contents) - if(istype(thing, /obj/structure/table)) - return TRUE + if(locate(/obj/structure/table) in target.loc) + return TRUE //Both small if(get_size(user) <= RESIZE_A_TINYMICRO && get_size(target) <= RESIZE_A_TINYMICRO)