From ceaf0740f425150ef6a229376c9898332d9cfd72 Mon Sep 17 00:00:00 2001 From: SoundScopes Date: Thu, 15 Jan 2015 16:38:51 +0000 Subject: [PATCH] Offhand Sprite bugfix --- code/modules/mob/living/carbon/carbon.dm | 3 ++- code/modules/projectiles/gun.dm | 4 ++-- html/changelog.html | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/code/modules/mob/living/carbon/carbon.dm b/code/modules/mob/living/carbon/carbon.dm index b743b589..4db8e2ed 100644 --- a/code/modules/mob/living/carbon/carbon.dm +++ b/code/modules/mob/living/carbon/carbon.dm @@ -133,10 +133,11 @@ /mob/living/carbon/proc/swap_hand() var/obj/item/item_in_hand = src.get_active_hand() if(item_in_hand) //this segment checks if the item in your hand is twohanded. - if(istype(item_in_hand,/obj/item/weapon/twohanded)) + if(istype(item_in_hand,/obj/item/weapon/twohanded) || istype(item_in_hand,/obj/item/weapon/gun)) if(item_in_hand:wielded == 1) usr << "Your other hand is too busy holding the [item_in_hand.name]" return + src.hand = !( src.hand ) if(hud_used.l_hand_hud_object && hud_used.r_hand_hud_object) if(hand) //This being 1 means the left hand is in use diff --git a/code/modules/projectiles/gun.dm b/code/modules/projectiles/gun.dm index ee846224..89608e7e 100644 --- a/code/modules/projectiles/gun.dm +++ b/code/modules/projectiles/gun.dm @@ -387,8 +387,8 @@ user << "You are no-longer stabilizing the [name] with both hands." O.unwield() unwield() - if(src) - del(src) + if(src) + del(src) /obj/item/weapon/gun/offhand/mob_can_equip(M as mob, slot) return 0 //Because you can't equip your hand yet somehow you can \ No newline at end of file diff --git a/html/changelog.html b/html/changelog.html index 8a1da820..49df3ce8 100644 --- a/html/changelog.html +++ b/html/changelog.html @@ -57,11 +57,12 @@ should be listed in the changelog upon commit though. Thanks. -->
-

10 January 2015

+

15 January 2015

SoundScopes updated: