Add inactive hand to carbon get_access

This commit is contained in:
Tigercat2000
2016-04-03 12:33:52 -07:00
parent a30b5fbf75
commit e2442e7fc9
+7 -3
View File
@@ -886,6 +886,10 @@ so that different stomachs can handle things in different ways VB*/
/mob/living/carbon/get_access()
. = ..()
var/obj/item/I = get_active_hand()
if(I)
. |= I.GetAccess()
var/obj/item/RH = get_active_hand()
if(RH)
. |= RH.GetAccess()
var/obj/item/LH = get_inactive_hand()
if(LH)
. |= LH.GetAccess()