diff --git a/code/game/objects/buckling.dm b/code/game/objects/buckling.dm index a6ee4e6779d..74da0949c3d 100644 --- a/code/game/objects/buckling.dm +++ b/code/game/objects/buckling.dm @@ -22,9 +22,12 @@ /atom/movable/MouseDrop_T(mob/living/M, mob/living/user) . = ..() + return mouse_buckle_handling(M, user) + +/atom/movable/proc/mouse_buckle_handling(mob/living/M, mob/living/user) if(can_buckle && istype(M) && istype(user)) if(user_buckle_mob(M, user)) - return 1 + return TRUE /atom/movable/proc/has_buckled_mobs() if(!buckled_mobs) diff --git a/code/modules/mob/living/silicon/robot/robot.dm b/code/modules/mob/living/silicon/robot/robot.dm index 205ad70abe4..fba3739e7f5 100644 --- a/code/modules/mob/living/silicon/robot/robot.dm +++ b/code/modules/mob/living/silicon/robot/robot.dm @@ -1131,10 +1131,10 @@ shell = TRUE cell = null -/mob/living/silicon/robot/MouseDrop_T(mob/living/M, mob/living/user) - . = ..() - if(!(M in buckled_mobs) && isliving(M) && ((user!=src)||(src.a_intent != INTENT_HARM))) - buckle_mob(M) +/mob/living/silicon/robot/mouse_buckle_handling(mob/living/M, mob/living/user) + if(can_buckle && istype(M) && !(M in buckled_mobs) && ((user!=src)||(a_intent != INTENT_HARM))) + if(buckle_mob(M)) + return TRUE /mob/living/silicon/robot/buckle_mob(mob/living/M, force = FALSE, check_loc = TRUE) if(!is_type_in_typecache(M, can_ride_typecache))