Fixes surgical table moving anchored things (#15886)

* stinky table no longer moves anchoreds

* Update code/game/objects/structures/tables_racks.dm

Co-authored-by: Farie82 <farie82@users.noreply.github.com>

Co-authored-by: Farie82 <farie82@users.noreply.github.com>
This commit is contained in:
Sean Williams
2021-04-14 14:02:33 +01:00
committed by GitHub
parent 53462a2ff0
commit df656ed43f
+1 -1
View File
@@ -591,7 +591,7 @@
verbs -= /obj/structure/table/verb/do_flip
typecache_can_hold = typecacheof(typecache_can_hold)
for(var/atom/movable/held in get_turf(src))
if(is_type_in_typecache(held, typecache_can_hold))
if(!held.anchored && held.move_resist != INFINITY && is_type_in_typecache(held, typecache_can_hold))
held_items += held.UID()
/obj/structure/table/tray/Move(NewLoc, direct)