Fixes organs and cyborg upgrades popping up in your screen

This commit is contained in:
Crazylemon64
2016-03-23 21:37:54 -07:00
parent 24f70a9ade
commit 651909a8ef
2 changed files with 3 additions and 5 deletions
@@ -957,7 +957,7 @@ var/global/list/damage_icon_parts = list()
/mob/living/carbon/human/update_hud() //TODO: do away with this if possible
if(client)
client.screen |= contents
client.screen |= get_all_slots() // Items only please, no arms allowed
if(hud_used)
hud_used.hidden_inventory_update() //Updates the screenloc of the items on the 'other' inventory bar
update_inv_handcuffed(0) // update handcuff overlay
@@ -261,10 +261,8 @@
/mob/living/silicon/robot/proc/update_items()
if (src.client)
src.client.screen -= src.contents
for(var/obj/I in src.contents)
if(I && !(istype(I,/obj/item/weapon/stock_parts/cell) || istype(I,/obj/item/device/radio) || istype(I,/obj/machinery/camera) || istype(I,/obj/item/device/mmi)))
src.client.screen += I
for(var/obj/I in get_all_slots())
client.screen |= I
if(src.module_state_1)
src.module_state_1:screen_loc = ui_inv1
if(src.module_state_2)