From f703e0f8d8b8ddbd3cc4c9681d2e29b511fd7b5a Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Thu, 25 Jan 2018 22:42:04 -0500 Subject: [PATCH] Merge pull request #34915 from Cruix/flipstuff Fixed the simple rotation component --- code/datums/components/rotation.dm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/datums/components/rotation.dm b/code/datums/components/rotation.dm index b42c05afd6..23d5fda5d4 100644 --- a/code/datums/components/rotation.dm +++ b/code/datums/components/rotation.dm @@ -63,10 +63,10 @@ if(rotation_flags & ROTATION_ALTCLICK) to_chat(user, "Alt-click to rotate it clockwise.") -/datum/component/simple_rotation/proc/HandRot(mob/user, rotation) - if(!can_be_rotated.Invoke(user,default_rotation_direction) || !can_user_rotate.Invoke(user,default_rotation_direction)) +/datum/component/simple_rotation/proc/HandRot(mob/user, rotation = default_rotation_direction) + if(!can_be_rotated.Invoke(user, rotation) || !can_user_rotate.Invoke(user, rotation)) return - BaseRot(user,default_rotation_direction) + BaseRot(user, rotation) /datum/component/simple_rotation/proc/WrenchRot(obj/item/I, mob/living/user) if(!can_be_rotated.Invoke(user,default_rotation_direction) || !can_user_rotate.Invoke(user,default_rotation_direction))