diff --git a/code/game/objects/items/robot/robot_parts.dm b/code/game/objects/items/robot/robot_parts.dm index 37d9e376a2..6621095b72 100644 --- a/code/game/objects/items/robot/robot_parts.dm +++ b/code/game/objects/items/robot/robot_parts.dm @@ -317,8 +317,7 @@ O.robot_suit = src if(!locomotion) - O.locked_down = 1 - O.update_mobility() + O.SetLockdown(TRUE) to_chat(O, "Error: Servo motors unresponsive.") else diff --git a/code/game/objects/structures/tables_racks.dm b/code/game/objects/structures/tables_racks.dm index 2df64a71ad..02740ce858 100644 --- a/code/game/objects/structures/tables_racks.dm +++ b/code/game/objects/structures/tables_racks.dm @@ -573,14 +573,14 @@ check_patient() /obj/structure/table/optable/proc/check_patient() - var/mob/living/carbon/human/M = locate(/mob/living/carbon/human, loc) - if(M) - if(!CHECK_MOBILITY(M, MOBILITY_STAND)) - patient = M - return 1 + var/mob/living/carbon/human/H = locate() in loc + if(H) + if(!CHECK_MOBILITY(H, MOBILITY_STAND)) + patient = H + return TRUE else patient = null - return 0 + return FALSE /* * Racks