From 1ba3ca64ebc90b909d819fa67757bfc80b131fbe Mon Sep 17 00:00:00 2001 From: crazyclonetheninja Date: Tue, 14 Dec 2010 21:53:00 +0000 Subject: [PATCH] Fixed a bug where hiding the extra inventory would not cause items in the extra slots to hide properly. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@616 316c924e-a436-60f5-8080-3fe189b3f50e --- code/modules/mob/living/carbon/human/human.dm | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/code/modules/mob/living/carbon/human/human.dm b/code/modules/mob/living/carbon/human/human.dm index cdaeec45d09..f1e18f2c342 100644 --- a/code/modules/mob/living/carbon/human/human.dm +++ b/code/modules/mob/living/carbon/human/human.dm @@ -1108,6 +1108,16 @@ /* if (src.w_radio) src.overlays += image("icon" = 'ears.dmi', "icon_state" = "headset[!src.lying ? "" : "2"]", "layer" = MOB_LAYER) */ + if (src.s_store) + var/t1 = src.s_store.item_state + if (!t1) + t1 = src.s_store.icon_state + src.overlays += image("icon" = 'belt_mirror.dmi', "icon_state" = text("[][]", t1, (!( src.lying ) ? null : "2")), "layer" = MOB_LAYER) + src.s_store.screen_loc = ui_sstore1 + + if (src.h_store) + src.h_store.screen_loc = ui_hstore1 + if(src.client) src.hud_used.other_update() //Update the screenloc of the items on the 'other' inventory bar //to hide / show them. @@ -1199,13 +1209,6 @@ src.overlays += image("icon" = 'belt.dmi', "icon_state" = text("[][]", t1, (!( src.lying ) ? null : "2")), "layer" = MOB_LAYER) src.belt.screen_loc = ui_belt - if (src.s_store) - var/t1 = src.s_store.item_state - if (!t1) - t1 = src.s_store.icon_state - src.overlays += image("icon" = 'belt_mirror.dmi', "icon_state" = text("[][]", t1, (!( src.lying ) ? null : "2")), "layer" = MOB_LAYER) - src.s_store.screen_loc = ui_sstore1 - if ((src.wear_mask && !(src.wear_mask.see_face)) || (src.head && !(src.head.see_face))) // can't see the face if (src.wear_id) if (istype(src.wear_id, /obj/item/weapon/card/id)) @@ -1247,9 +1250,6 @@ if (src.r_store) src.r_store.screen_loc = ui_storage2 - if (src.h_store) - src.h_store.screen_loc = ui_hstore1 - if (src.back) var/t1 = src.back.icon_state src.overlays += image("icon" = 'back.dmi', "icon_state" = text("[][]", t1, (!( src.lying ) ? null : "2")), "layer" = MOB_LAYER)